[Python-checkins] bpo-32117: Iterable unpacking in return and yield documentation (GH-9487)
Miss Islington (bot)
webhook-mailer at python.org
Sat Sep 22 21:13:14 EDT 2018
https://github.com/python/cpython/commit/8fabae3b00b2ccffd9f7bf4736734ae584ac5829
commit: 8fabae3b00b2ccffd9f7bf4736734ae584ac5829
branch: master
author: jChapman <jChapman at users.noreply.github.com>
committer: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
date: 2018-09-22T18:13:10-07:00
summary:
bpo-32117: Iterable unpacking in return and yield documentation (GH-9487)
News entry clean up, added to what's new
Requested by @gvanrossum in https://github.com/python/cpython/pull/4509
https://bugs.python.org/issue32117
files:
M Doc/whatsnew/3.8.rst
M Misc/NEWS.d/next/Core and Builtins/2017-11-22-15-43-14.bpo-32117.-vloh8.rst
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 26928fbd55c0..c464346987b9 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -103,6 +103,10 @@ Other Language Changes
never intended to permit more than a bare name on the left-hand side of a
keyword argument assignment term. See :issue:`34641`.
+* Iterable unpacking is now allowed without parentheses in :keyword:`yield`
+ and :keyword:`return` statements.
+ (Contributed by David Cuthbert and Jordan Chapman in :issue:`32117`.)
+
New Modules
===========
diff --git a/Misc/NEWS.d/next/Core and Builtins/2017-11-22-15-43-14.bpo-32117.-vloh8.rst b/Misc/NEWS.d/next/Core and Builtins/2017-11-22-15-43-14.bpo-32117.-vloh8.rst
index 9685680ee53e..8add90c5b70a 100644
--- a/Misc/NEWS.d/next/Core and Builtins/2017-11-22-15-43-14.bpo-32117.-vloh8.rst
+++ b/Misc/NEWS.d/next/Core and Builtins/2017-11-22-15-43-14.bpo-32117.-vloh8.rst
@@ -1,3 +1,3 @@
-Iterable unpacking is now allowed without parenthesis in yield and return
+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.
+change and Jordan Chapman for added tests.
More information about the Python-checkins
mailing list