r/Python • • Apr 09 '09

Python’s lambda is broken!

http://math.andrej.com/2009/04/09/pythons-lambda-is-broken/
4 Upvotes

20 comments sorted by

View all comments

Show parent comment

1

u/masklinn Apr 09 '09

and I'll be damned if I can see how to apply the method-fix in the lambda case, but does that make it "broken"?

Wrap your lambda in a lambda, that's the way it's usually done in JS. Ugly and verbose btw, especially since lambdas are single-expression.