Calling a generator multiple times

Neil Schemenauer nas at python.ca
Fri Dec 7 09:56:09 EST 2001


Courageous wrote:
> The first call to some generator g() should behave like:
> 
> 	f=g()
> 	f.next()

That would reduce the power of generators in Python.  There would be no
way to create a generator without starting it.

   Neil




More information about the Python-list mailing list