cpy3 icon indicating copy to clipboard operation
cpy3 copied to clipboard

Go bindings to the CPython-3 API

Results 12 cpy3 issues
Sort by recently updated
recently updated
newest added

**this is my code**: `package main import python3 "github.com/go-python/cpy3 func main() { python3.Py_Initialize() defer python3.Py_Finalize() python3.PyRun_SimpleString("print('hello world')") }` **The following problem arises after execution**: `/usr/local/go/pkg/tool/darwin_arm64/link: running clang failed: exit status...

------ Note: If you have a **usage question** (i.e. how to achieve something specific using this library + the CPython C-API) consider posting it to [this project's **GitHub Discussions** board](https://github.com/go-python/cpy3/discussions)...

Currently only Python 3.7 is supported. This is because the Python3 C API slightly changes between versions. For example Python 3.8 removed the `PyEval_ReInitThreads` function, so binding it fails. (Also...

enhancement
help wanted

I am having a new Mac with an M1 processor installed. I installed a Golang version with an arm version for Mac M1 from the official site: https://go.dev/dl/ I downloaded...

This PR contains example for goroutines

It would be great to have a helper function that converts a go struct or map to a Python dict. As a matter of fact it would also be really...

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...

enhancement

some tests aren't working on Windows, probably never have.

bug
enhancement

### What does this PR do? Adding an example of using goroutines ### Motivation The issue #4 ### Additional Notes This example is up to date and tested

There are often questions about how to use this lib with Goroutines (i.e. #3 , DataDog#49). There's an [extensive blogpost](https://www.datadoghq.com/blog/engineering/cgo-and-python/#the-dreadful-global-interpreter-lock) on the topic, but it's for `sbinet/go-python`. We should add...

documentation
good first issue
help wanted