[issue31901] atexit callbacks only called for current subinterpreter
Petr Viktorin
report at bugs.python.org
Wed Nov 8 10:49:56 EST 2017
Petr Viktorin <encukou at gmail.com> added the comment:
When you destroy a subinterpreter before Py_Finalize is called, Python can't start calling its atexit callbacks – they no longer have a subinterpreter to run in.
Therefore I think callbacks for a particular subinterpreter should be called when (and only when) that subinterpreter is destroyed. Regardless of whether it's the main one or not.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31901>
_______________________________________
More information about the Python-bugs-list
mailing list