More baby squeaking - iterators in a class

Alex Martelli aleaxit at yahoo.com
Thu Dec 30 13:17:36 EST 2004


Bulba! <bulba at bulba.com> wrote:

> So which is it? Does next() method HAS to be defined
> explicitly?

It has to be defined, whether explicitly or not (e.g. via a generator).


Alex



More information about the Python-list mailing list