lambda
Terry Reedy
tjreedy at udel.edu
Thu Jan 13 15:08:16 EST 2005
"Egor Bolonev" <ebolonev at mail.ru> wrote in message
news:opskje6vb7xejsk1 at theurs.octopusnet.lan...
> why functions created with lambda forms cannot contain statements?
Because lambda was only ever intended to be an inline abbreviation of
simple one-use functions whose body consists of 'return <expression>'. It
is clear to me that the word 'lambda' was a mistake since it engenders
expectations of more than that from too many people, such as you.
Terry J. Reedy
More information about the Python-list
mailing list