Advertisement · 728 × 90

Posts by Ben Brown

pyo3::ffi - Rust Raw FFI declarations for Python’s C API.

PyO3 doesn't support sub-interpreters yet, so they're not straightforward to use from Rust. But you can use their FFI bindings for access.

pyo3.rs/main/doc/pyo...

1 year ago 1 0 0 0
Preview
Initialization, Finalization, and Threads See Python Initialization Configuration for details on how to configure the interpreter prior to initialization. Before Python Initialization: In an application embedding Python, the Py_Initialize(...

From Python 3.12 you can create sub-interpreters with their own GILs (so they can execute concurrently) using the C API.

Most Python modules work well, but most extension modules (C API Modules) don't support multiple GILs yet.

docs.python.org/3/c-api/init...

1 year ago 1 0 1 0