[New-bugs-announce] [issue43149] Misleading error message for except with missing parens (3.10.a5)
Andre Roberge
report at bugs.python.org
Sat Feb 6 17:54:08 EST 2021
New submission from Andre Roberge <andre.roberge at gmail.com>:
The following:
try:
pass
except ValueError, NameError as err:
pass
results in:
except ValueError, NameError as err:
^
SyntaxError: expected ':'
However, what is missing here are some parentheses surrounding the exception types.
----------
messages: 386570
nosy: aroberge
priority: normal
severity: normal
status: open
title: Misleading error message for except with missing parens (3.10.a5)
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43149>
_______________________________________
More information about the New-bugs-announce
mailing list