[Python-Dev] PEP 289: Generator Expressions (second draft)
Jeremy Fincher
fincher.8 at osu.edu
Wed Oct 22 05:45:48 EDT 2003
On Wednesday 22 October 2003 03:57 am, Raymond Hettinger wrote:
> Accordingly, generator expressions are expected to partially eliminate
> the need for reduce() which is notorious for its lack of clarity. And,
> there are additional speed and clarity benefits from writing expressions
> directly instead of using lambda.
I probably missed it in this monster of a thread, but how do generator
expressions do this? It seems that they'd only make reduce more efficient,
but it would still be just as needed as before.
Jeremy
More information about the Python-Dev
mailing list