[Python-Dev] PEP 489: module m_traverse called with NULL module state (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Tue Dec 19 10:19:26 EST 2017


On Tue, 19 Dec 2017 16:10:06 +0100 Petr Viktorin <encukou at gmail.com> wrote:

> > Speaking of which, the doc is not very clear: is PEP 489 required for > multi-interpreter support or is PyModuleGetState() sufficient?

Yes, it is possible to have proper subinterpreter support without multi-phase init.

Thanks. I guess the C API docs need a user-friendly section laying out the various methods for initializing a module, and their various advantages :-)

Regards

Antoine.



More information about the Python-Dev mailing list