Of what use is 'lambda'???
Alex Martelli
aleaxit at yahoo.com
Sun Oct 8 17:19:51 EDT 2000
<piet at cs.uu.nl> wrote in message news:ur96g91i4.fsf at cs.uu.nl...
[snip]
> T> So, does lamda have a feature that regulars funcs have or is just there
> T> for convenience??
>
> Its main purpose is convenience so that you don't have to invent a name
and
> to separate your function from the place where you have to supply it as a
> parameter.
Not having to invent a name, OK. But why would you "separate from the
place" anyway, even without lambda? You could define a nested function
right before passing it as a parameter.
Alex
More information about the Python-list
mailing list