Éric Araujo <mer...@netwok.org> added the comment:

It seems to me that atexit is simple by design: It registers callables that do 
one thing, period. If you have dependencies in your cleanup code, you should 
write a function doing the Right Thing™ and register that. This keeps the 
implementation simple, otherwise we’d have to debate LIFO vs. FIFO, adding an 
argument to register vs. exposing the list of callables, etc.

If you agree, I could make a patch to make the docs more explicit about 
atexit’s simplicity and lack of guarantee about run order.

----------

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

Reply via email to