[Python-Dev] PEP 489: module m_traverse called with NULL module state

Petr Viktorin encukou at gmail.com
Tue Dec 19 10:53:49 EST 2017


On 12/19/2017 04:19 PM, Antoine Pitrou wrote:
> 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 PyModule_GetState() 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 :-)

That, or eventually remove multi-phase init's disadvantages, and have 
just one way to do it :)


More information about the Python-Dev mailing list