Recursive Generator Question

Shalabh Chaturvedi shalabh at cafepy.com
Fri Sep 3 02:47:25 EDT 2004


Shalabh Chaturvedi wrote:
> 1. Calling __iter__() should return an object with next() on it.
> 2. When you call a function containing yield, it returns a generator.
> 3. A generator is function with next() on it.
> 

3 should be
3. A generator is an object with next() on it.

--
Shalabh




More information about the Python-list mailing list