Skip to content

Commit

Permalink
docs: Mention PEP 479 in whatsnew.
Browse files Browse the repository at this point in the history
Issue 22906.
  • Loading branch information
1st1 committed May 22, 2015
1 parent 6833339 commit 8d006e7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Doc/whatsnew/3.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------------------------------------------------------------

Expand Down

0 comments on commit 8d006e7

Please sign in to comment.