Special keyword argument lambda syntax

Rhodri James rhodri at wildebst.demon.co.uk
Sat Mar 14 19:44:25 EDT 2009


On Fri, 13 Mar 2009 16:39:16 -0000, Scott David Daniels  
<Scott.Daniels at acm.org> wrote:

> The original proposal was initially appealing to me until I saw this
> comment.  That means a relatively "invisible typo" would turn into good
> syntax.  Possibley this is exactly what Rhodri James is talking about,
> but just to be explicit, one of these is probably a mistake:
>         somefun(something, key(x)==5)
>         somefun(something, key(x)=5)
> Right now a syntax error makes you look there, after your extension,
> only test cases will show these problems.

Oo, no, I'd missed that!  Good catch.


-- 
Rhodri James *-* Wildebeeste Herder to the Masses



More information about the Python-list mailing list