Message75409
Setting builtins._=None is not enough.
My example is very simple, but the crash I had initially was during the
deletion of sys.last_tb: the C() object may be stored anywhere.
I agree that the test in PyModule_Create2 is too strong: the import
machinery is still functional at this point. It could be replaced by
something that becomes true on _PyImport_Init(), and false on
_PyImport_Fini(). |
|
Date |
User |
Action |
Args |
2008-10-31 08:37:52 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, loewis, vstinner, christian.heimes |
2008-10-31 08:37:52 | amaury.forgeotdarc | set | messageid: <1225442272.68.0.311179301672.issue4236@psf.upfronthosting.co.za> |
2008-10-31 08:37:41 | amaury.forgeotdarc | link | issue4236 messages |
2008-10-31 08:37:40 | amaury.forgeotdarc | create | |
|