[issue46725] Unpacking without parentheses is allowed since 3.9
Pablo Galindo Salgado
report at bugs.python.org
Tue Feb 22 05:56:34 EST 2022
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
What happened is that the new grammar using the PEG parser used the equivalent of starred_testlist instead of testlist for the iterable list of for statements.
The only extra thing allowed is starred elements, that are interpreted as if you are building a tuple without parentheses.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46725>
_______________________________________
More information about the Python-bugs-list
mailing list