A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-November/029902.html below:

[Python-Dev] metaclass insanity

[Python-Dev] metaclass insanity [Python-Dev] metaclass insanityMichael Hudson mwh@python.net
05 Nov 2002 11:32:48 +0000
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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4