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