]> granicus.if.org Git - python/commit
bpo-32117: Allow tuple unpacking in return and yield statements (gh-4509)
authorDavid Cuthbert <dacut@kanga.org>
Sat, 22 Sep 2018 01:31:15 +0000 (18:31 -0700)
committerGuido van Rossum <guido@python.org>
Sat, 22 Sep 2018 01:31:15 +0000 (18:31 -0700)
commitfd97d1f1af910a6222ea12aec42c456b64f9aee4
treee07d238eb81a7f526e40249b706d95b4ba4a4748
parent7279b5125e7c5d84a473d250b27d353cb7f6628e
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.
Grammar/Grammar
Lib/test/test_grammar.py
Misc/NEWS.d/next/Core and Builtins/2017-11-22-15-43-14.bpo-32117.-vloh8.rst [new file with mode: 0644]
Python/graminit.c