PEP 255: Simple Generators

Carsten Geckeler uioziaremwpl at spammotel.com
Sat Jun 23 05:13:09 EDT 2001


On Sat, 23 Jun 2001, Tim Peters wrote:

> [Carsten Geckeler]
> > I think we came to the core point.  It seems that some people have
> > exactly the other oppinion, i.e. that the differences how a generator
> > is evaluated and used is so different that a different "def" line would
> > be helpful for many people.
>
> Yup, that's it in a nutshell.  Generally speaking, though, the people in the
> latter camp have only read about generators, never used them.
>
> > Could you tell me, how e.g. a "generator"  statement would
> > be distracting?
>
> Sorry, no:  Guido pronounced on this, and that's the end of the argument.

When you make a statement in a post, it may be very nice if you could
comment on it.

> It's been debated to death -- see the Python-Iterators list for dozens of
> repetitions of every argument made here (including this one).
>
> > I can't see how a more clearifying statement could possibly distract
> > people.
>
> But it's not really clarifying if it draws a useless distinction <wink>.

Cheers, Carsten
-- 
Carsten Geckeler





More information about the Python-list mailing list