[issue34508] return of non-parenthesized star-unpacking expression a SyntaxError

Guido van Rossum report at bugs.python.org
Fri Oct 18 01:01:08 EDT 2019


Guido van Rossum <guido at python.org> added the comment:

See:

commit fd97d1f1af910a6222ea12aec42c456b64f9aee4
Author: David Cuthbert <dacut at kanga.org>
Date:   Fri Sep 21 18:31:15 2018

    bpo-32117: Allow tuple unpacking in return and yield statements (gh-4509)
    
    Iterable unpacking is now allowed without parentheses in yield and return
    statements, e.g. ``yield 1, 2, 3, *rest``. Thanks to David Cuthbert for the
    change and jChapman for added tests.

----------
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list