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 loewis
Recipients barry, christian.heimes, grahamd, loewis
Date 2008-10-26.18:36:12
SpamBayes Score 3.0456886e-06
Marked as misclassified No
Message-id <>
It would certainly be possible to produce per-interpreter callback lists
through the module state. You declare a per-interpreter structure, add
its size into atexitmodule, and refer to it through PyModule_GetDef,
passing the self argument of the module-level functions.

Reviewing the code, I have two unrelated remarks:
- METH_NOARGS functions still take two arguments.
- I would drop the double-indirection of the callback list. Instead,
allocate a single block of atexit_callback, and use func==NULL as an
indicator that the block is free.

According to the documentation of the atexit module, it seems clear that
it is a per-interpreter thing.
Date User Action Args
2008-10-26 18:36:14loewissetrecipients: + loewis, barry, christian.heimes, grahamd
2008-10-26 18:36:14loewissetmessageid: <>
2008-10-26 18:36:12loewislinkissue4200 messages
2008-10-26 18:36:12loewiscreate