cpython: c8a3e49f35e7 (original) (raw)

Mercurial > cpython

changeset 96207:c8a3e49f35e7

docs: Mention PEP 479 in whatsnew. Issue 22906.

Yury Selivanov yselivanov@sprymix.com
date Fri, 22 May 2015 11:30:45 -0400
parents 2771a0ac806b
children 3a5fec5e025d
files Doc/whatsnew/3.5.rst
diffstat 1 files changed, 21 insertions(+), 0 deletions(-)[+] [-] Doc/whatsnew/3.5.rst 21

line wrap: on

line diff

--- 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:: +

+ +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 486: Make the Python Launcher aware of virtual environments ---------------------------------------------------------------