[Python-ideas] FW: Map-then-filter in comprehensions

Koos Zevenhoven k7hoven at gmail.com
Thu Mar 10 09:48:01 EST 2016


On Thu, Mar 10, 2016 at 3:40 PM, Rob Cliffe <rob.cliffe at btinternet.com> wrote:
 [...]
>
> [foo(x) for x in things if is not None]    # What you wrote is already valid
> syntax, equivalent to [foo(x) for x in things]

Oh, of course! Thanks.

I suppose my confusion may be an argument against the syntax ;)

 -- Koos


More information about the Python-ideas mailing list