Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.12.0
Problem description
PEP 703 proposes making the GIL optional. The steering council accepted it, and its integration is ongoing within CPython. Is there a plan to make pybind11 compatible with free-threaded builds?
Some changes would probably involve using new references instead of borrowed references. Apart from this, could the global state stored in internals and local_internals pose an issue if accessed from different threads simultaneously without the GIL to protect this?
Reproducible example code
No response
Is this a regression? Put the last known working version here if it is.
Not a regression
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.12.0
Problem description
PEP 703 proposes making the GIL optional. The steering council accepted it, and its integration is ongoing within CPython. Is there a plan to make pybind11 compatible with free-threaded builds?
Some changes would probably involve using new references instead of borrowed references. Apart from this, could the global state stored in
internalsandlocal_internalspose an issue if accessed from different threads simultaneously without the GIL to protect this?Reproducible example code
No response
Is this a regression? Put the last known working version here if it is.
Not a regression