Message75241
I'm trying to come up with a patch. It's a little bit trickier than I
thought. The atexit module registers "atexit_callfuncs()" with
_Py_PyAtExit(). The "atexit_callfuncs()" function is called by
Python/pythonrun.c when the interpreter exits. The function is cleared
as "static void atexit_callfuncs(void)" so it doesn't get the module
through self. However PyModule_GetDef requires self.
In order to use PEP 3121 we have to add a mechanism to pass the module
instance to atexit_callfuncs(). |
|
| Date |
User |
Action |
Args |
| 2008-10-26 18:56:53 | christian.heimes | set | recipients:
+ christian.heimes, loewis, barry, grahamd |
| 2008-10-26 18:56:53 | christian.heimes | set | messageid: <[email protected]> |
| 2008-10-26 18:56:52 | christian.heimes | link | issue4200 messages |
| 2008-10-26 18:56:52 | christian.heimes | create | |
|