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

2017年12月14日 06:14:46 -0800

On 2017年12月14日 15:05:02 +0100
Petr Viktorin <[email protected]> wrote:
> 
> PEP 489 gives you good defaults, if you use it and avoid global state 
> (roughly: C-level mutable static variables), then you should get 
> multi-interpreter support for free in simple cases.
> It's also possible to use PyModule_GetState() and other APIs directly. 
> However, I'd like to avoid solving subinterpreter support separately 
> (and slightly differently) in each module.
My question is: can you get multi-interpreter support *without* PEP
489? That is, using single-phase initialization and
PyModule_GetState().
> For a slightly bigger picture: as a part-time internship, Marcel is 
> identifying where PEP 489 is inadequate, and solving the problems for 
> the complex cases.
Is Marcel mentored by anyone in particular?
> I'm assuming fixing the atexit bug from 2009 [0] can be delayed a bit as 
> issues with PEP 489 are investigated & solved.
> Does that sound fair?
Probably, but the atexit bug deserves fixing in itself. If a fix is
ready, it would be a pity not to let it in.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to