Calling a generator multiple times

Courageous jkraska at san.rr.com
Sat Dec 8 01:30:25 CET 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