Larry Hastings <la...@hastings.org> added the comment:

I have been meditating on this, and I'm not sure we should change 2.7.  3.2 
might be okay.

The thing is, I fear we're not just talking about CPython implementation 
details, we're talking about the Python Standard Library.  The existing 
documentation clearly gives alternative implementations free license to call 
atexit registered functions in any order they like.  So it's conceivable that 
other implementations don't guarantee reverse order.

I don't know what the right thing is to do here.  It seems like we could define 
atexit's behavior for 2.7 *if* all the major alternative implementations 
happily also implicitly guarantee reverse order.  Failing that we probably 
shouldn't touch it.  Or we could just document that reverse order is guaranteed 
in CPython only.

Of course, there are no alternative implementations that support 3.2.  That's 
why I think 3.2 might be okay.  It does seem strange to redefine part of the 
implicit language spec more than a year after the release shipped though.

----------

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

Reply via email to