Calling a generator multiple times

Courageous jkraska at san.rr.com
Fri Dec 7 19:30:25 EST 2001


>A generator is a function or method that -- by virtue of using the yield
>statement -- 

I understand how it works, intuitively. My objection is not that
I don't understand it, but rather that a lone keyword appearing
in the content of the method definition actually changes what is
being defined. That's just plain wrong.

C//




More information about the Python-list mailing list