Message115769
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. |
|
Date |
User |
Action |
Args |
2010-09-07 14:59:12 | eric.araujo | set | recipients:
+ eric.araujo, skip.montanaro, pitrou, giampaolo.rodola |
2010-09-07 14:59:12 | eric.araujo | set | messageid: <1283871552.26.0.809714499377.issue9788@psf.upfronthosting.co.za> |
2010-09-07 14:59:10 | eric.araujo | link | issue9788 messages |
2010-09-07 14:59:10 | eric.araujo | create | |
|