[issue32117] Tuple unpacking in return and yield statements

David Cuthbert report at bugs.python.org
Wed Nov 29 17:20:32 EST 2017


David Cuthbert <dacut at kanga.org> added the comment:

Hm... that leaves the only production for expression_list as:
subscription ::= primary "[" expression_list "]"

And I'm not sure that this shouldn't also be replaced by starred_list. It's not accepted today, though:

In [6]: a[1,*(4, 5, 6)]
  File "<ipython-input-6-ba56159162e9>", line 1
    a[1,*(4, 5, 6)]
        ^
SyntaxError: invalid syntax

I will ask about this again on python-dev@

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32117>
_______________________________________


More information about the Python-bugs-list mailing list