[Python-Dev] [Python-checkins] r43358 - python/trunk/Modules/itertoolsmodule.c

Neal Norwitz nnorwitz at gmail.com
Mon Mar 27 23:30:27 CEST 2006

On 3/27/06, Thomas Wouters <thomas at python.org> wrote:
> The teeobject has GC (hence the word 'and' in 'itertools.tee and its
> internal teedataobject' ;-) The problem with test_generators is that this
> also leaks:
> def leak():
>     def gen():
>         while True:
>             yield g
>     g = gen()
> leak()

Please add a test for this to the leakers and remove the tee test in
leakers if that no longer leaks.


More information about the Python-Dev mailing list