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 Arfrever, amaury.forgeotdarc, christian.heimes, gregory.p.smith, pitrou, python-dev, sbt
Date 2013-08-01.09:59:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375351165.31.0.90572956917.issue18214@psf.upfronthosting.co.za>
In-reply-to
Content
> As for the __main__ dict, perhaps we're missing a decref somewhere.

Actually, it's not surprising. Blob's methods hold a reference to the __main__ globals, and there's still a Blob object alive in encodings.

If you replace the end of your script with the following:

for name, mod in sys.modules.items():
    if name != 'encodings':
        mod.__dict__["__blob__"] = Blob(name)
del name, mod, Blob


then at the end of the shutdown phase, remaining is empty.
History
Date User Action Args
2013-08-01 09:59:25pitrousetrecipients: + pitrou, gregory.p.smith, amaury.forgeotdarc, christian.heimes, Arfrever, python-dev, sbt
2013-08-01 09:59:25pitrousetmessageid: <1375351165.31.0.90572956917.issue18214@psf.upfronthosting.co.za>
2013-08-01 09:59:25pitroulinkissue18214 messages
2013-08-01 09:59:25pitroucreate