How does a generator object refer to itself?

Russell russell_turpin at hotmail.com
Fri May 26 17:46:34 CEST 2006


Michael wrote:
> You don't need python 2.5 at all to do this. You do need to
> have a token mutable first argument though, as you can see.

Thank you. That's a pattern similar to one we're using, where
a new object refers to the generator. The problem we're seeing
is that it seems to fool the garbage collector. We're not
positive about that. But we are suspicious.

Interesting page you have. I've bookmarked it. Thanks, again.




More information about the Python-list mailing list