[issue15293] AST nodes do not support garbage collection

2014-05-24 Thread Benjamin Peterson

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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15293] AST nodes do not support garbage collection

2014-05-22 Thread Charles-François Natali

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
http://bugs.python.org/issue15293
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15293] AST nodes do not support garbage collection

2014-05-22 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15293
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15293] AST nodes do not support garbage collection

2012-07-08 Thread Antoine Pitrou

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
 self.assertEqual(x.foobar, 42)
 self.assertEqual(x.__dict__[foobar], 42)
+x.x = x
 
 with self.assertRaises(AttributeError):
 x.vararg


and you'll get a reference leak.

--
assignee: benjamin.peterson
components: Interpreter Core
messages: 165001
nosy: benjamin.peterson, pitrou
priority: normal
severity: normal
status: open
title: AST nodes do not support garbage collection
type: resource usage
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15293
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue15293] AST nodes do not support garbage collection

2012-07-08 Thread Roundup Robot

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:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15293
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com