[Python-3000] Requiring () around lambda's argument list

Nick Coghlan ncoghlan at gmail.com
Tue May 2 11:31:26 CEST 2006


Thomas Wouters wrote:
> 
> On 5/1/06, *Guido van Rossum* <guido at python.org 
> <mailto:guido at python.org>> wrote:
> 
>     I'm running into something that may make me require parentheses around
>     lambda's argument list.
> 
> 
> Lambda-lovers will probably jump all over me for suggesting this, and I 
> doubt you'll go fir it, but what about just not allowing type 
> annotations in lambda statements? They're neutered anyway.

Or spell it with a different keyword ;)

  (expr given (arg1: a1type=a1default, arg2: a2type= a2default))

Grinning-ducking-and-running'ly y'rs,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-3000 mailing list