gopy
gopy copied to clipboard
gopy generates a CPython extension module from a go package.
Hi, wanted to create wrapper for the standard text/template/parse/library but the generated code contains following: ```python if 3 < len(args): self.True = args[3] ``` where ```python @property def True(self): return...
I found what appears to be a bug in `bind/symbols.go`. Consider the following Go function that was generated by gopy: ``` go func gopackage_GoObject_ExampleFunc(_handle CGoHandle, val CGoHandle, pythonCallback *C.PyObject, callbackArgument...
- A function that returns a []map[string]interface{} is incorrect for integer types ```golang func Test() ([]map[string]interface{}, error) { var result []map[string]interface{} rowMap := make(map[string]interface{}) rowMap["id"] = 1 rowMap["test"] = 2...
If you attempt to create a Python `bytes` from a Golang `Slice_bytes` of length 0, then the application will crash. Consider the following: **go_code.go** ``` func CreateBytes(len byte) []byte {...
## Summary I am trying to run a Golang http server through python but then the program cannot be stopped. I tried to send SIGTERM(ctrl+c)/SIGKILL(ctrl+d) signals from the terminal but...
Reproduction steps: 1. Run commands: ``` mkdir dum cd dum go mod init dummy.com/dum mkdir hello ``` 2. Create file named `hello/hello.go` with following contents: ```go package hello type Example...
I'm trying to build a package for a project which will be deployed to amd64/linux targets. An example of the command I'm trying to run: `GOOS=linux GOARCH=amd64 gopy pkg -dynamic-link=true...
Add freebsd to main_unix.go, as without it building will fail as libExt and extraGccArgs are undefined
I say "broken" because according to the golang issue this was never intended to work and was merely working by accident: https://github.com/golang/go/issues/65050#issue-2074509727 here's a small reproduction demoing this breakage. I'm...
Trying to create a simple package produces the following error on macOS with a newer version of Clang installed: ``` ❯ gopy pkg example.com/hello go build -v example.com/hello --- Processing...