On Tue, Jun 01, 2021 at 04:30:25PM -0400, Steele Farnsworth wrote: > This was proposed in 2014 and was rejected: > https://www.python.org/dev/peps/pep-0463/
No, that's a proposal for a Python *expression* that can be imbedded in another expression. Shreyan's proposal here is just to allow fitting both the try and except one-line statements on the same line. Instead of: try: n = len(obj) except TypeError: n = -1 Shreyan wants to cram both statements on a single line: try: n = len(obj); except TypeError: n = -1 -- Steve _______________________________________________ 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/FOLLP2EOM7PD3CRDBRF7R5U2OLUBBJ5H/ Code of Conduct: http://python.org/psf/codeofconduct/