Chris Angelico wrote: > Hang on. When would code inside a generator function implement > __next__? A generator function is a valid way of implementing > __iter__, not __next__. Well, it kind of does both at once. -- Greg