Author pitrou
Recipients arigo, brett.cannon, christian.heimes, glchapman, loewis, pitrou
Date 2009-01-12.12:57:45
SpamBayes Score 0.0398853
Marked as misclassified No
Message-id <1231765066.74.0.906094185794.issue812369@psf.upfronthosting.co.za>
In-reply-to
Content
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
disbanded)

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.
History
Date User Action Args
2009-01-12 12:57:47pitrousetrecipients: + pitrou, loewis, brett.cannon, arigo, glchapman, christian.heimes
2009-01-12 12:57:46pitrousetmessageid: <1231765066.74.0.906094185794.issue812369@psf.upfronthosting.co.za>
2009-01-12 12:57:46pitroulinkissue812369 messages
2009-01-12 12:57:45pitroucreate