Closed
Description
Required prerequisites
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker and Discussions to verify that this hasn't already been reported. +1 or comment there if it has.
- Consider asking first in the Gitter chat room or in a Discussion.
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