This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients eric.araujo, giampaolo.rodola, pitrou, skip.montanaro
Date 2010-09-07.14:59:10
SpamBayes Score 3.0044383e-05
Marked as misclassified No
Message-id <1283871552.26.0.809714499377.issue9788@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-09-07 14:59:12eric.araujosetrecipients: + eric.araujo, skip.montanaro, pitrou, giampaolo.rodola
2010-09-07 14:59:12eric.araujosetmessageid: <1283871552.26.0.809714499377.issue9788@psf.upfronthosting.co.za>
2010-09-07 14:59:10eric.araujolinkissue9788 messages
2010-09-07 14:59:10eric.araujocreate