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

Paul Moore p.f.moore at gmail.com
Thu Mar 10 09:45:52 EST 2016


On 10 March 2016 at 13:40, 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]

... which pretty much explains why this syntax isn't a good idea.
Paul


More information about the Python-ideas mailing list