[issue3680] Cycles with some iterator are leaking.

2008-08-25 Thread Robert Schuppenies
New submission from Robert Schuppenies <[EMAIL PROTECTED]>: The dict, set, and deque iterators do not implement tp_traverse although they reference container objects. This can lead to reference cycles which will not be collected. The attached cycle.py script from Amaury demonstrates the problem f

[issue3680] Cycles with some iterator are leaking.

2008-08-25 Thread Robert Schuppenies
Changes by Robert Schuppenies <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11255/tp_traverse.patch ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3680] Cycles with some iterator are leaking.

2008-08-28 Thread Jesús Cea Avión
Changes by Jesús Cea Avión <[EMAIL PROTECTED]>: -- nosy: +jcea ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing l

[issue3680] Cycles with some iterator are leaking.

2008-09-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > This is my first excursion into cyclic garbage collector > implementations, so please review carefully. If you don't implement a tp_clear function, you should leave a comment why not. I think it's ok, since the underlying containers will g

[issue3680] Cycles with some iterator are leaking.

2008-09-14 Thread Robert Schuppenies
Robert Schuppenies <[EMAIL PROTECTED]> added the comment: > I think it's ok, since the underlying containers will get cleared, thus > breaking the cycle. What about the dictiter object which references a tuple (di_result)? Tuple does not implement tp_clear, but OTOH tuples are immutable and di_r

[issue3680] Cycles with some iterator are leaking.

2008-12-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3680] Cycles with some iterator are leaking.

2009-01-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed to trunk and py3k, thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___