[New-bugs-announce] [issue18621] site.py keeps too much stuff alive when it patches builtins

Antoine Pitrou report at bugs.python.org
Thu Aug 1 22:49:56 CEST 2013


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 <report at bugs.python.org>
<http://bugs.python.org/issue18621>
_______________________________________


More information about the New-bugs-announce mailing list