[issue40631] PEG Parser: Cannot used starred expression in parenthesised expr
Guido van Rossum
report at bugs.python.org
Wed Dec 30 17:30:20 EST 2020
Guido van Rossum <guido at python.org> added the comment:
Honestly this seems like a bug in 3.8 to me (if it indeed behaves like this):
>>> (*x), y
(1, 2, 3)
Every time I mistakenly tried (*x) I really meant (*x,), so it's surprising that (*x), y would be interpreted as (*x, y) rather than flagging (*x) as an error.
Please don't "fix" this even if it is a regression.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40631>
_______________________________________
More information about the Python-bugs-list
mailing list