[issue18621] site.py keeps too much stuff alive when it patches builtins

2013-08-06 Thread Antoine Pitrou
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

[issue18621] site.py keeps too much stuff alive when it patches builtins

2013-08-06 Thread Roundup Robot
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 __

[issue18621] site.py keeps too much stuff alive when it patches builtins

2013-08-01 Thread Antoine Pitrou
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 m