+1
Steven D'Aprano wrote:It's about conciseness. The only time it makes sense to
Why would you want to get rid of the lambda keyword? What's the benefit?
Is this about saving twelve keystrokes?
write a function in-line is when the body is extremely
short -- but then it gets swamped by the lambda keyword
itself.
But I agree that the OP's particular solution is restricted
to a case that's too special. My version is completely
general -- it can express anything that the existing lambda
can express.
--
Greg
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
http://mail.python.org/mailman/listinfo/python-ideas