[Python-ideas] Enhance definition of functions

Steven D'Aprano steve at pearwood.info
Thu Aug 1 07:49:39 CEST 2013


On 01/08/13 13:24, Göktuğ Kayaalp wrote:

> BTW, if a multi-statement anonymous function syntax was to be considered
> seriously, I'd recommend a lambda statement with colon replaced with a
> brace-delimited block


You can get an idea of how brace-delimited blocks are treated by using a __future__ directive. At the interactive interpreter:


from __future__ import braces



and then take it from there.



-- 
Steven


More information about the Python-ideas mailing list