Benjamin Peterson added the comment:
How are you reproducing the bug? In Python 2, the AST base class doesn't have a
__dict__, and it's subtypes do support GC.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15293
Charles-François Natali added the comment:
Would it be possible to backport this to 2.7?
We've been bitten by this at work (pyflakes introduces reference cycles in AST).
--
nosy: +neologix
___
Python tracker rep...@bugs.python.org
Changes by Florent Xicluna florent.xicl...@gmail.com:
--
nosy: +flox
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15293
___
___
Python-bugs-list
New submission from Antoine Pitrou pit...@free.fr:
Add the following to test_ast:
diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py
--- a/Lib/test/test_ast.py
+++ b/Lib/test/test_ast.py
@@ -199,6 +199,7 @@ class AST_Tests(unittest.TestCase):
x.foobar = 42
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8538d01c by Benjamin Peterson in branch 'default':
add gc support to the AST base type (closes #15293)
http://hg.python.org/cpython/rev/8538d01c
--
nosy: +python-dev
resolution: - fixed
stage: -