Hi all,
I wonder if Python provides a way to define anonymous functions containing
multiple statements? With lambda form, we can only define a function of a
single
expression. In Javascript, it is possible to define
a full-fledged anonymous functions, which suggests it is useful to have it.
On 7/10/2011 7:21 AM, Yingjie Lan wrote:
I wonder if Python provides a way to define anonymous functions containing
multiple statements?
No, intentionally not. Forget this idea. Multiple functions named
'lambda' are inferior for representation purposes, like in error
tracebacks, to those