Hi all, Lambdas can be defined as such:
w = lambda: [12] x = lambda y: len(y) I'd like to propose the following: w = (): [12] x = (y): len(y) Or even another contraction for when there are no arguments: w =: [12] This would also be consistent with the other proposal on anonymous functions for defaults: https://mail.python.org/pipermail/python-list/2021-February/900795.html -- ∞
_______________________________________________ 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/QQUS35S4IOV3CR2G3MZNT3RZ2F6TBE4G/ Code of Conduct: http://python.org/psf/codeofconduct/