gopy icon indicating copy to clipboard operation
gopy copied to clipboard

gopy generates a CPython extension module from a go package.

Results 75 gopy issues
Sort by recently updated
recently updated
newest added

in _examples/maps/test.py: ```Python # TODO: not sure why python2 doesn't just catch this error, but it doesn't seem to.. # try: # v = a[4] # except Exception as err:...

```Python # TODO: need conversion from bytestr to string -- not sure pybindgen can do it? # bytestr_ret = encoding.HandleString(bytestr) ```

when conflicting symbols exceeds, the generated symbol name will have control character.

I am trying to build a Python package that wraps the Helm Go SDK, but when I follow the example I get "no files in package" when I try to...

I have code like this: ``` . ├── a.go ├── b │   ├── b.go │   └── internal │   └── internal.go └── go.mod ``` ```go // a.go package a import "a/b"...

Fix this panic: ``` panic: interface conversion: types.Type is *types.Signature, not *types.Named goroutine 1 [running]: github.com/go-python/gopy/bind.(*Package).process(0xc01d5ee800) /home/hugo/k/gopy/bind/package.go:340 +0x2078 github.com/go-python/gopy/bind.NewPackage(0xc009d2e720, 0xc00b228120) /home/hugo/k/gopy/bind/package.go:68 +0x27c main.parsePackage(0xc0203ec180) /home/hugo/k/gopy/gen.go:159 +0x276 main.buildPkgRecurse({0xc0000ce640, 0x20}, {0xc0005d1ce0, 0x26}, {0x7ffd641ad938,...

I wanted to pass a slice of slices of boolean values ([][]bool). I would assume that this could simply be done like this: ```go func GetEmptyMatrix(xSize int, ySize int) [][]bool...

Hi, I'm trying to build this project, https://github.com/holiman/uint256, but I've run into multiple issues: Suppose we have a function with multiple outputs: `func (z *Int) AddOverflow(x, y *Int) (*Int, bool)`,...

I am facing an issue with Golang-to-Python interoperability. Specifically, when I call a Python function from Golang and pass a []byte data as a parameter, the Python function unexpectedly receives...

Hi there, first of all, am a big fan of this project, i was working on creating go bindings to python recently(https://github.com/Sanix-Darker/go_bind) and in a more real life project, i...