[Python-Dev] PEP 289 - Generator Expressions - Let's Move Forward

Delaney, Timothy C (Timothy) tdelaney at avaya.com
Mon May 3 17:56:42 EDT 2004


Tim Peters wrote:

>     # add a filter over the current pipe, and call that the new pipe
>     pipe = (e for e in pipe if p(e))

This is a fairly convincing argument to me - that is something I do all
the time with listcomps. Saves having to invent extra names.

Tim Delaney



More information about the Python-Dev mailing list