[Python-Dev] PEP 442 aftermath: module globals at shutdown
Antoine Pitrou
solipsis at pitrou.net
Tue Jul 30 20:42:00 CEST 2013
Hello,
PEP 442 has now been committed in time for testing in Alpha 1.
This paves the way for the removal of another well-known annoyance: the
behaviour of module globals at shutdown. Now that reference cycles
aren't a barrier to object finalization anymore, we shouldn't need
to set module globals to None before trying to reclaim modules.
(and then, we don't need to cache global functions for use in
finalizers, either)
I have a patch to suppress the hack in
http://bugs.python.org/issue18214
Once I get to add some tests, I would like to commit it soon too!
Regards
Antoine.
More information about the Python-Dev
mailing list