[Python-Dev] metaclass insanity (original) (raw)
Michael Hudson mwh@python.net
05 Nov 2002 11:32:48 +0000
- Previous message: [Python-Dev] metaclass insanity
- Next message: [Python-Dev] metaclass insanity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Just van Rossum <just@letterror.com> writes:
While I'm sure this was just a theoretical example, this specific case is much easier written as a generator (and I love the idiom of making the iter method a generator, I think it's underused...).
Maybe it's underused because it hasn't occured to people? It certainly does look neat.
Cheers, M. now struggling to think of an iterator that's better done as a class than a generator...
-- incidentally, asking why things are "left out of the language" is a good sign that the asker is fairly clueless. -- Erik Naggum, comp.lang.lisp
- Previous message: [Python-Dev] metaclass insanity
- Next message: [Python-Dev] metaclass insanity
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]