[Python-Dev] metaclass insanity
Just van Rossum
Tue, 5 Nov 2002 16:32:57 +0100
> Hmmmm... I'm surprised that you're surprised.
Yeah, I see now that I was somewhat naive...
> Here's my slide from
> Generators simpler
> No need to explicitly maintain state
[ ... ]
Well, in this particular example no state is maintained in either version.
Generators are simply a higher level way of building an iterator, because
there's no need to explicitly raise StopIteration.