[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-ideas
Subject:    Re: [Python-ideas] Syntax for passing lambdas to functions
From:       Greg <greg.ewing () canterbury ! ac ! nz>
Date:       2014-02-28 3:35:11
Message-ID: 531003EF.1060100 () canterbury ! ac ! nz
[Download RAW message or body]

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


_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic