Message115769
| 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 ThingTM 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: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 |
|