Author pitrou
Recipients pitrou, sbt
Date 2013-08-01.20:49:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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".
Date User Action Args
2013-08-01 20:49:56pitrousetrecipients: + pitrou, sbt
2013-08-01 20:49:56pitrousetmessageid: <>
2013-08-01 20:49:56pitroulinkissue18621 messages
2013-08-01 20:49:56pitroucreate