-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
buffer protocol #10
Comments
@christian-korneck your dream is complete Let's try it, python bindings cgo-less |
@aadog do you have a buffer protocol example? |
What is he |
go to python or python to go,They are done automatically string->str If it is not supported, please return * pyobject to convert manually, or modify pyconvert https://github.com/aadog/py3-go/blob/master/PyConvert.go |
All this should be simple, but I don't know what type of byte should be converted to Python |
I wonder if it would make sense to add the Python3 C-API functions related to the Python buffer protocol. This might make it easier to share bytes between Go and Python? (i.e. io.Reader/io.Writer stuff).
https://docs.python.org/3/c-api/buffer.html
The text was updated successfully, but these errors were encountered: