[Python-ideas] A conditional "for" statement

Terry Reedy tjreedy at udel.edu
Fri Apr 24 00:56:28 CEST 2009


Proposed and rejected.

The difference between

for i in seq:
   if p(i):
     do(i)

and

for i in seq if p(i):
   do(i)

is deletion of ':\n'.  Hardly worth the bother.




More information about the Python-ideas mailing list