[New-bugs-announce] [issue15293] AST nodes do not support garbage collection

Antoine Pitrou report at bugs.python.org
Sun Jul 8 12:47:34 CEST 2012


New submission from Antoine Pitrou <pitrou at 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 <report at bugs.python.org>
<http://bugs.python.org/issue15293>
_______________________________________


More information about the New-bugs-announce mailing list