summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-02-04 08:53:48 (GMT)
committerGitHub <noreply@github.com>2018-02-04 08:53:48 (GMT)
commit07ca9afaa8768b44baf816b4998d209ed3e0088f (patch)
treeacb09f5cd6a660acb41d77c150cdd6236bf02d96 /Doc/whatsnew
parent8b5fa289fdb04b6b919cf95fa99246aa872e47a8 (diff)
downloadcpython-07ca9afaa8768b44baf816b4998d209ed3e0088f.zip
cpython-07ca9afaa8768b44baf816b4998d209ed3e0088f.tar.gz
cpython-07ca9afaa8768b44baf816b4998d209ed3e0088f.tar.bz2
bpo-10544: Disallow "yield" in comprehensions and generator expressions. (GH-4564)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.8.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 8a3f9b0..c4063ad 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -113,6 +113,15 @@ This section lists previously described changes and other bugfixes
that may require changes to your code.
+Changes in Python behavior
+--------------------------
+
+* Yield expressions (both ``yield`` and ``yield from`` clauses) are now disallowed
+ in comprehensions and generator expressions (aside from the iterable expression
+ in the leftmost :keyword:`for` clause).
+ (Contributed by Serhiy Storchaka in :issue:`10544`.)
+
+
Changes in the Python API
-------------------------