Simple Recursive Generator Question

Francis Avila francisgavila at yahoo.com
Fri Dec 19 15:02:31 EST 2003


MetalOne wrote in message
<92c59a2c.0312191113.569724ca at posting.google.com>...
>What am I missing?

The difference between a generator and a generator function.

>>> def gen_func(): yield None
...
>>> gen_func() # what does this return?

Also, this isn't a recursive problem.  Use a loop.
--
Francis Avila





More information about the Python-list mailing list