[Python-ideas] Assignments in list/generator expressions

Guido van Rossum guido at python.org
Tue Apr 12 17:24:35 CEST 2011

On Mon, Apr 11, 2011 at 11:31 PM, Georg Brandl <g.brandl at gmx.net> wrote:
> On 12.04.2011 07:06, Nick Coghlan wrote:
>> ys = [y for x in xs given f(x) if p(x) else g(x) as y]
> Is it just me, or do others find this "string of clauses" (no matter what
> the actual keywords are) not very readable?

No, I can't parse it either.

--Guido van Rossum (python.org/~guido)

More information about the Python-ideas mailing list