2 Jun
2021
2 Jun
'21
12:47 a.m.
On Wed, Jun 2, 2021 at 10:40 AM Steven D'Aprano
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.
I can understand the confusion though, given that the parallel constructs cited for justification are all expressions. ChrisA