On Tue, Feb 23, 2021, at 17:01, Rob Cliffe via Python-ideas wrote:
> As far as I know, there is no case of valid syntax using 'lambda' where 
> replacing 'lambda' by 'def' results in valid syntax.
> Can anyone provide a counter-example?
> If not, I would support allowing 'def' as an alternative to 'lambda' 
> (allowing 'def' to ultimately become the recommended usage).

I have an objection to this: "def" is short for define, and a lambda does not 
produce a definition. This isn't just about saving keystrokes, and even if it 
were, saving only three would not be worth it for a syntax that is just as 
confusing as the existing one.
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/DQA6G2AWX3TCAKCOTC3JPGX66S772JPK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to