New submission from Antoine Pitrou:

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".

----------
components: Library (Lib)
files: sitebuiltins.patch
keywords: patch
messages: 194117
nosy: pitrou, sbt
priority: normal
severity: normal
stage: patch review
status: open
title: site.py keeps too much stuff alive when it patches builtins
type: resource usage
versions: Python 3.4
Added file: http://bugs.python.org/file31114/sitebuiltins.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18621>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to