Too much code - slicing

Steven D'Aprano steve-REMOVE-THIS at
Thu Sep 23 05:49:50 CEST 2010

On Thu, 23 Sep 2010 01:49:44 +0000, Seebs wrote:

> But I do think it's unfair to dismiss it as purely a matter of baby duck
> syndrome.  Consistency in ordering of corresponding idioms seems a
> reasonable goal.

I don't see anyone bitching about:

for x in seq:
    if x:


[f(x) for x in seq if x]


More information about the Python-list mailing list