STINNER Victor <vstin...@python.org> added the comment:

Serhiy Storchaka:
> Why there are cycles at all? In normal case there should not be cycle and the 
> result tuple should be destroyed when the iteration ends.

test_itertools creates a reference cycle *on purpose*. See test_zip_leak2.py  
simplified code, it comes from test_itertools.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42536>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to