PEP 255: Simple Generators
Tim Peters
tim.one at home.com
Sat Jun 23 03:31:58 EDT 2001
[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.
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>.
More information about the Python-list
mailing list