[issue18621] site.py keeps too much stuff alive when it patches builtins
Roundup Robot added the comment: New changeset 8584f63e570e by Antoine Pitrou in branch 'default': Issue #18621: Prevent the site module's patched builtins from keeping too many references alive for too long. http://hg.python.org/cpython/rev/8584f63e570e -- nosy: +python-dev ___ 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
[issue18621] site.py keeps too much stuff alive when it patches builtins
Antoine Pitrou added the comment: I went ahead and committed this, so that the effect of other improvements in the area stand out better. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ 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
[issue18621] site.py keeps too much stuff alive when it patches builtins
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