This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: how to migrate a c-extension module to one that supports subinerpreters?
Type: enhancement Stage:
Components: Documentation Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, eric.snow, jkloth, mattip, petr.viktorin
Priority: normal Keywords:

Created on 2018-12-05 19:16 by mattip, last changed 2022-04-11 14:59 by admin.

Messages (2)
msg331142 - (view) Author: mattip (mattip) * Date: 2018-12-05 19:16
NumPy does not currently support subinterpreters, it has global state that is not cleaned up when releasing the module. I could not find a description of the steps I need to take to modernize the C-extension module to be able to used under a subinterpreter. It would be nice to describe this in the Python documentation, or does such documentation exist?
msg332149 - (view) Author: Petr Viktorin (petr.viktorin) * (Python committer) Date: 2018-12-19 16:23
Hi (and sorry for the delay -- it's a busy time of year).

Unfortunately, there's no good documentation yet. Python's standard library itself is not free of global state, and I don't think we want to start documenting before that's fixed.
History
Date User Action Args
2022-04-11 14:59:08adminsetgithub: 79601
2018-12-19 16:23:37petr.viktorinsetmessages: + msg332149
2018-12-06 00:47:37jklothsetnosy: + jkloth
2018-12-05 19:55:48eric.snowsetnosy: + petr.viktorin
2018-12-05 19:16:39mattipcreate