I posted this to LWN, and thought I'd share it here too:

I'm opposed to terse-ifying lambda in Python.

Lambda is rarely useful in Python - you're almost always better off using a
generator expression, a list comprehension, or something from the operator
module.

And lambdas tend to give rise to the software development equivalent of a
runon sentence.

Naming a function in those rare cases that you genuinely need something
custom really isn't the end of the world, and is more readable anyway.
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/KZ66M7T4E6BO3ZO4FNC4RWC3LSE6CQG5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to