Skip to content

3.4 Extension Modules in Subinterpreters

Eric Snow edited this page May 31, 2023 · 1 revision

While subinterpreters have been a part of CPython nearly as long as extension modules, the latter have had issues dealing with the former nearly since the beginning.

Challenges

C global state

...in extensions and libraries

pyca/cryptography #2299: C extension init races under subinterpreters

C-API

e.g. GILState API