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 pitrou
Recipients arigo, brett.cannon, christian.heimes, glchapman, loewis, pitrou
Date 2009-01-12.12:57:45
SpamBayes Score 0.03988535
Marked as misclassified No
Message-id <>
Looking at the patch, is there any reason it doesn't get rid of the
current _PyModule_Clear() implementation to replace it by a call to
PyDict_Clear() followed by PyGC_Collect()?
(the call to PyGC_Collect could be disabled while finalizing, because
there's no use calling it as many times as there are modules to be

The major annoyance with the current scheme is that, at interpreter
shutdown, some globals you want to rely on in your destructors suddenly
become None.

About what to do of gc.garbage at shutdown, there was another proposal
in #477863.
Date User Action Args
2009-01-12 12:57:47pitrousetrecipients: + pitrou, loewis, brett.cannon, arigo, glchapman, christian.heimes
2009-01-12 12:57:46pitrousetmessageid: <>
2009-01-12 12:57:46pitroulinkissue812369 messages
2009-01-12 12:57:45pitroucreate