On 2/17/21 8:47 AM, Random832 wrote:
On Tue, Feb 16, 2021, at 23:24, Stephen J. Turnbull wrote:

except a couple of characters.  So what currently looks like

     some_list.sort(key=lambda e: e[3].priority)

would then be

     some_list.sort(key=(e)->e[3].priority)

Let's not pretend the key argument being keyword-only isn't a wart. Surely this 
would be better if it could be some_list.sort(e->e[3].priority).

No need to pretend, it isn't a wart.

-1 on removing the lambda keyword. Just because excessive punctuation works for other languages does not mean it's a good fit for Python.

--
~Ethan~
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/IU7DEE5WZFWDKFDPUZAYCV5DPGFGSAJK/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to