r/Python • Python Morsels • Sep 27 '18

Stop writing lambda expressions in Python

http://treyhunner.com/2018/09/stop-writing-lambda-expressions/
0 Upvotes

26 comments sorted by

View all comments

2

u/david2ndaccount Sep 27 '18

The real reason to not use lambdas in python is that they’re arbitrarily crippled. Also, why are they lambda and not def? Why don’t they support names? etc., etc. Guido just crippled them and it really makes Python worse for it.

1

u/billsil Sep 28 '18

Guido didn't write lambda. He accepted a patch. Guido didn't know how you'd want to use it in 1991.

4

u/david2ndaccount Sep 28 '18

He has systematically rejected all proposals for improving it.

1

u/billsil Sep 28 '18

Lambdas are still bad...