Message151527
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. |
|
Date |
User |
Action |
Args |
2012-01-18 09:49:15 | grahamd | set | recipients:
+ grahamd, loewis, terry.reedy, pitrou, r.david.murray, python-dev, eric.snow, chn |
2012-01-18 09:49:15 | grahamd | set | messageid: <1326880155.54.0.953824884852.issue6531@psf.upfronthosting.co.za> |
2012-01-18 09:49:14 | grahamd | link | issue6531 messages |
2012-01-18 09:49:14 | grahamd | create | |
|