subexpressions
Terry Reedy
tjreedy at udel.edu
Fri Jun 1 12:37:05 EDT 2007
"Sergey Dorofeev" <sergey at fidoman.ru> wrote in message
news:f3oj68$1pb8$1 at news.rtcomm.ru...
| How to make x*x to be evaluated once?
Addendum to the answers already posted: In Python,
lambda params: expression
is an inline abbreviation for
def <lambda>(params): return expression
except that there is no external binding of the otherwise illegal
.func_name '<lambda>'. The resulting function objects are otherwise
identical.
After years of discussion, Guido has decided to leave lambda alone for 3.0.
It will not be neither expanded, nor removed, nor renamed.
Terry Jan Reedy
More information about the Python-list
mailing list