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 sbt
Recipients Arfrever, amaury.forgeotdarc, gregory.p.smith, pitrou, python-dev, sbt
Date 2013-07-31.22:39:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I played a bit with the patch and -v -Xshowrefcount.  The number of references and blocks left at exit varies (and is higher than for unpatched python).

It appears that a few (1-3) module dicts are not being purged because they have been "orphaned".  (i.e. the module object was garbaged collected before we check the weakref, but the module dict survived.)  Presumably it is the hash randomization causing the randomness.

Maybe 8 out of 50+ module dicts actually die a natural death by being garbage collected before they are purged.  Try

    ./python -v -Xshowrefcount
Date User Action Args
2013-07-31 22:39:26sbtsetrecipients: + sbt, gregory.p.smith, amaury.forgeotdarc, pitrou, Arfrever, python-dev
2013-07-31 22:39:26sbtsetmessageid: <>
2013-07-31 22:39:26sbtlinkissue18214 messages
2013-07-31 22:39:26sbtcreate