Issue 35420: how to migrate a c-extension module to one that supports subinerpreters? (original) (raw)

Issue35420

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:08 admin set github: 79601
2018-12-19 16:23:37 petr.viktorin set messages: +
2018-12-06 00:47:37 jkloth set nosy: + jkloth
2018-12-05 19:55:48 eric.snow set nosy: + petr.viktorin
2018-12-05 19:16:39 mattip create