[Python-ideas] About list comprehension syntax

Jan Kanis jan.kanis at phil.uu.nl
Fri Jun 1 10:20:02 CEST 2007

On Wed, 30 May 2007 12:41:51 +0200, Arnaud Delobelle  
<arno at marooned.org.uk> wrote:

> (3') [x in L if p(x)]

I like the idea as well. It doesn't look ambiguous to me. 'if' can only  
appear as a statement or in conjunction with an 'else', so this expression  
can't mean anything else imo.


More information about the Python-ideas mailing list