diff options
author | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-22 15:30:45 (GMT) |
---|---|---|
committer | Yury Selivanov <yselivanov@sprymix.com> | 2015-05-22 15:30:45 (GMT) |
commit | 8d006e75e02dadf4af4d69cc6e0d846b0e29e154 (patch) | |
tree | 58631abe761999c1864f75848532e720af2ea4e9 /Doc | |
parent | 683333955a05a31da5f0b2ca1b3bffb9962fb4b2 (diff) | |
download | cpython-8d006e75e02dadf4af4d69cc6e0d846b0e29e154.zip cpython-8d006e75e02dadf4af4d69cc6e0d846b0e29e154.tar.gz cpython-8d006e75e02dadf4af4d69cc6e0d846b0e29e154.tar.bz2 |
docs: Mention PEP 479 in whatsnew.
Issue 22906.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.5.rst | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst index b9ea627..b2571ae 100644 --- a/Doc/whatsnew/3.5.rst +++ b/Doc/whatsnew/3.5.rst @@ -209,6 +209,27 @@ against asynchronous signal reception. :pep:`475` -- Retry system calls failing with EINTR +PEP 479: Change StopIteration handling inside generators +-------------------------------------------------------- + +:pep:`479` changes the behavior of generators: when a :exc:`StopIteration` +exception is raised inside a generator, it is replaced with a +:exc:`RuntimeError`. To enable the feature a ``__future__`` import should +be used:: + + from __future__ import generator_stop + +Without a ``__future__`` import, a :exc:`PendingDeprecationWarning` will be +raised. + +PEP written by Chris Angelico and Guido van Rossum. Implemented by +Chris Angelico, Yury Selivanov and Nick Coghlan. + +.. seealso:: + + :pep:`479` -- Change StopIteration handling inside generators + + PEP 486: Make the Python Launcher aware of virtual environments --------------------------------------------------------------- |