summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorYury Selivanov <yury@magic.io>2018-01-26 20:24:24 (GMT)
committerGitHub <noreply@github.com>2018-01-26 20:24:24 (GMT)
commit43c47fe09640c579462978ec16f81295f5857cde (patch)
tree6a1524a805eb5d181acc04552bfb1a09ea736e39 /Doc/whatsnew
parentdba976b8a28d6e5daa66ef31a6a7c694a9193f6a (diff)
downloadcpython-43c47fe09640c579462978ec16f81295f5857cde.zip
cpython-43c47fe09640c579462978ec16f81295f5857cde.tar.gz
cpython-43c47fe09640c579462978ec16f81295f5857cde.tar.bz2
bpo-32670: Enforce PEP 479. (#5327)
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.7.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index a350919..43fbd01 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -935,6 +935,12 @@ that may require changes to your code.
Changes in Python behavior
--------------------------
+* :pep:`479` is enabled for all code in Python 3.7, meaning that
+ :exc:`StopIteration` exceptions raised directly or indirectly in
+ coroutines and generators are transformed into :exc:`RuntimeError`
+ exceptions.
+ (Contributed by Yury Selivanov in :issue:`32670`.)
+
* Due to an oversight, earlier Python versions erroneously accepted the
following syntax::