[Python-ideas] Lambda again: Anonymous function definition

Talin talin at acm.org
Thu Apr 3 03:49:51 CEST 2008


Matt Chisholm wrote:
> +1 to handling anonymous functions/lambdas the way JavaScript does.
> It's the only thing I like better about JavaScript than Python.

Unfortunately, there's no way in Python to have a statement inside of an 
expression (because statements are delimited by line ends and 
indentation). Many people have attempted this, none have succeeded. 
Don't go there, you'll just be opening up old wounds...

-- Talin



More information about the Python-ideas mailing list