Re: [Python-Dev] FYI: more clues re: tee+generator leak

2006-04-17 Thread Phillip J. Eby
At 12:53 PM 4/17/2006 -0400, Phillip J. Eby wrote: >By the way, the above cycle will leak even if the generator is never >iterated even once; it's quite simple to set up. I'm testing this using >-R:: on test_generators, and hacking on the _fib function and friends. Follow-up note: it's possible t

[Python-Dev] FYI: more clues re: tee+generator leak

2006-04-17 Thread Phillip J. Eby
I've been fiddling a bit with test_generators this morning, and have found that a stripped down version of the fibonacci test only leaks if the generator has a reference to a *copied* tee object. It doesn't matter whether the copied tee object is the second result from tee(), or if you just cr