[Python-ideas] Syntax for passing lambdas to functions

Greg greg.ewing at canterbury.ac.nz
Fri Feb 28 04:35:11 CET 2014


On 28/02/2014 12:38 p.m., Joshua Landau wrote:

> Further, for consistency one can define:
>
>      matrix.transform((x, y)=(y, x))
 > Please admit that this is way, way prettier.

Hmm, I'm not so sure. That looks more like it should mean

    matrix.transform(x = y, y = x)

i.e. an unpacking assignment to keyword args.

-- 
Greg




More information about the Python-ideas mailing list