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

I defined an alias like this: ```go package gi ... type Color = gist.Color ``` gopy then redefined the source type information (gist.Color), in the aliased package (gi), and this...

`bind/stdtypes.go` installs the basic builtin types, and Slice_ versions of these. It does not currently install an []error slice, but it should -- otherwise functions returning this end up binding...

It should be possible in theory to support multiple return values from Go functions, constructing a []handle slice or something like that. The main problem would be supporting any kind...

Currently, you can pass a Python function back to Go functions that take function args, but it should be possible to also be able to support passing actual Go functions...

Repro: ``` docker run -it -v `pwd`:/go/src/github.com/me/my_project docker.apple.com/golang:1.15-alpine # in container cd /go/src/github.com/me/my_project apk add build-base git python3 python3-dev # Python 3.8.5 python3 -m ensurepip go mod download make gopy...

#222 and #224 were merged to fix #220 and #221. as noted in https://github.com/go-python/gopy/pull/222#issuecomment-604050120, it would be great to add tests for those, to make sure we don't regress at...

I'm curious what model is used to bridge Python and golang concurrency models. I wish it was documented :) Python has threads (1:1 mapped to lightweight system processes) and asyncio,...

py2 generates different output than py3 for some tests (see main_test.go notes for details) -- for full testing to work properly, a separate want output is required for each. for...

It works fine for functions, just not methods. There is some ambiguity about how the self argument is handled for methods, but presumably that is the crux of the problem....

in _examples/funcs/test.py ```Python # TODO: not currently supported: # print("funcs.F1()...") # f1 = funcs.F1() # print("f1()= %s" % f1()) # # print("funcs.F2()...") # f2 = funcs.F2() # print("f2()= %s" %...