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

Paul Moore p.f.moore at gmail.com
Tue Mar 8 14:19:39 EST 2016


On 8 March 2016 at 18:57, Joseph Jevnik <joejev at gmail.com> wrote:
> If we were to translate this to python syntax we could have something like:
> [r + 1 for n in range(1, 11) for n * 3 as r if r % 4 == 0]

Quite seriously, I have no idea what that means. If I saw it in a code
review, I'd insist that it were rewritten.

Paul


More information about the Python-ideas mailing list