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 pitrou, sbt
Date 2013-08-01.20:49:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375390196.76.0.0867903823381.issue18621@psf.upfronthosting.co.za>
In-reply-to
Content
The site module patches the builtins module unless Python is run with -S. Unfortunately, this means the builtins dict then keeps the site module globals alive until the end of interpreter shutdown, preventing the garbage collection of many other objects or modules.

Attached patch isolates those patched builtins inside a separate module "_sitebuiltins".
History
Date User Action Args
2013-08-01 20:49:56pitrousetrecipients: + pitrou, sbt
2013-08-01 20:49:56pitrousetmessageid: <1375390196.76.0.0867903823381.issue18621@psf.upfronthosting.co.za>
2013-08-01 20:49:56pitroulinkissue18621 messages
2013-08-01 20:49:56pitroucreate