Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, christian.heimes, loewis, vstinner
Date 2008-10-31.08:37:40
SpamBayes Score 0.0264832
Marked as misclassified No
Message-id <1225442272.68.0.311179301672.issue4236@psf.upfronthosting.co.za>
In-reply-to
Content
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().
History
Date User Action Args
2008-10-31 08:37:52amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, loewis, vstinner, christian.heimes
2008-10-31 08:37:52amaury.forgeotdarcsetmessageid: <1225442272.68.0.311179301672.issue4236@psf.upfronthosting.co.za>
2008-10-31 08:37:41amaury.forgeotdarclinkissue4236 messages
2008-10-31 08:37:40amaury.forgeotdarccreate