X Tutup

[Python-Dev] PEP 289: Generator Expressions

Alex Martelli aleaxit at yahoo.com
Mon Oct 27 18:19:29 EST 2003


On Monday 27 October 2003 10:13 pm, Raymond Hettinger wrote:
   ...
> Several people initially thought that lambda should be part of the

yield was repeatedly mentioned, and I don't recall lambda being, so
maybe this is a typo.

> syntax, but other respondants quickly laid that to rest.

Yes, consensus clearly converged on the proposed syntax (the mention
of "generators" in the construct's name was the part that I think prompted
the desire for 'yield' -- had they been called "iterator expressions" I
suspect nobody would have missed 'yield' even transiently:-).


> One poster counter-suggested a weird regex style syntax for embedding
> Perl expressions.  The newsgroup was very kind and no one called him
> wacko :-)

...though I did say "if you want Perl, you know where to find it"...:-)


> The discussion is winding down and there are no unresolved questions.

Yes, fair summary.  The one persistent (but low-as-a-whisper) grumbling
is by one A.M., who keeps mumbling "they're _iterator_ expressions, the
fact that they use generators is an implementation detail, grmbl grmbl":-).
But then, he IS one of those pesky must-always-have-SOME-whine types.


Alex




More information about the Python-Dev mailing list
X Tutup