[Python-Dev] Lambda [was Re: PEP 8 modernisation] (original) (raw)
Vito De Tullio vito.detullio at gmail.com
Thu Aug 1 19:55:03 CEST 2013
- Previous message: [Python-Dev] Lambda [was Re: PEP 8 modernisation]
- Next message: [Python-Dev] PEP 8 modernisation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] Lambda [was Re: PEP 8 modernisation]
- Next message: [Python-Dev] PEP 8 modernisation
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]