[Python-Dev] Lambda [was Re: PEP 8 modernisation]

Vito De Tullio vito.detullio at gmail.com
Thu Aug 1 19:55:03 CEST 2013


Steven D'Aprano wrote:

> Lambda is still useful for the reason lambda has always been useful: it is
> an expression, not a statement, so you can embed it directly where needed.

are there some possibilities to change def to an expression? do I need to 
wait 'till python9k?

yes, this brings to the possibility to write something like

foo = def bar():
    pass

but at least should let the lambda to die in peace...


-- 
ZeD



More information about the Python-Dev mailing list