For loop comprehensions

Terry Reedy tjreedy at udel.edu
Sat Feb 12 04:54:21 CET 2011


On 2/11/2011 6:10 PM, Benjamin S Wolf wrote:
> It occurred to me as I was writing a for loop that I would like to
> write it in generator comprehension syntax, eg.
>
>    for a in b if c:

Already proposed and rejected. See archives for python-ideas or the 
gmane.comp.python.ideas mirror.

-- 
Terry Jan Reedy




More information about the Python-list mailing list