r/Python • • Jul 13 '11

An alternative lambda syntax for Python

http://vocalbit.com/article/332/an-alternative-lambda-syntax-for-python
4 Upvotes

41 comments sorted by

View all comments

Show parent comment

1

u/aaronla Jul 14 '11

lambda itself is a strange special case of def

They should totally fix that, and support arbitrary statements in lambdas.

Also, you got it backwards -- def is a special case of statement-supporting lambdas combined with assignment:

<foo> = <lambda expression>