[Python-Dev] metaclass insanity

Just van Rossum just@letterror.com
Tue, 5 Nov 2002 16:32:57 +0100


Aahz wrote:

> Hmmmm...  I'm surprised that you're surprised. 

Yeah, I see now that I was somewhat naive...

> Here's my slide from
> OSCON2002:
> 
> 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.

Just