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 glchapman
Recipients
Date 2004-03-11.13:56:18
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=86307

Not sure if this is a good idea, but I wonder if the extensions 
dictionary should be cleared (ie _PyImport_Fini called) 
sooner, possibly even before PyImport_Cleanup.  This would 
allow garbage collection during PyImport_Cleanup to catch 
anything a C module might have created which is in a cycle 
with its module (through a bad design on my part, I recently 
discovered I had created just such a cycle).

I suppose _PyImport_Fini is called when it is called because 
some code during PyImport_Cleanup might import a 
dynamic module, which would then create a new extensions 
dictionary if _PyImport_Fini had already been run.  Perhaps 
a flag could be added so that _PyImport_FixupExtension 
would not try to add a module's dict to extensions if Python 
is currently shutting down.
History
Date User Action Args
2007-08-23 15:29:18adminlinkissue812369 messages
2007-08-23 15:29:18admincreate