[Python-ideas] About list comprehension syntax
g.brandl at gmx.net
Fri Jun 1 11:34:12 CEST 2007
Jan Kanis schrieb:
> 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.
Tell that to the LL(1) parser ;)
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.
More information about the Python-ideas