Graham Dumpleton <graham.dumple...@gmail.com> added the comment:

What are the intentions with respect to atexit and sub interpreters?

The original report was only about ensuring that the main interpreter doesn't 
crash if an atexit function was registered in a sub interpreter. So, was not 
expecting a change to sub interpreters in submitting this report, in as much as 
atexit callbacks for sub interpreters are never invoked in Python 2.X.

That said, for mod_wsgi I have extended sub interpreter destruction so that 
atexit callbacks registered in sub interpreters are called. For mod_wsgi 
though, sub interpreters are only destroyed on process shutdown. For the 
general case, a sub interpreter could be destroyed at any time during the life 
of the process. If one called atexit callbacks on such sub interpreter 
destruction, it notionally changes the meaning of atexit, which is in process 
exit and not really sub interpreter exit.

----------

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

Reply via email to