[Python-Dev] metaclass insanity (original) (raw)
Just van Rossum just@letterror.com
Tue, 5 Nov 2002 16:32:57 +0100
- Previous message: [Python-Dev] metaclass insanity
- Next message: [Python-Dev] metaclass insanity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] metaclass insanity
- Next message: [Python-Dev] metaclass insanity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]