Petr Viktorin <encu...@gmail.com> added the comment:

I'm not sure where the concept of "main subinterpreter" comes in, with respect 
to this issue.

I thnik the issue of atexit callbacks could be solved by something like keeping 
info about each callback's subinterpreter, and switching subinterpreters before 
running each one. I can see the locking needed for that being quite hairy, but 
independent of which thread calls all this.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31901>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to