[issue18214] Stop purging modules which are garbage collected before shutdown

Richard Oudkerk report at bugs.python.org
Thu Aug 1 16:14:55 CEST 2013


Richard Oudkerk added the comment:

Yes, I agree the patch is ok.

It would be would be much simpler to keep track of the module dicts if 
they were weakrefable.  Alternatively, at shutdown a weakrefable object 
with a reference to the module dict could be inserted in to each module 
dict.  We could then use those to find orphaned module dicts.  But I 
doubt it is worth the extra effort.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18214>
_______________________________________


More information about the Python-bugs-list mailing list