[Python-checkins] cpython (merge 3.4 -> default): Issue #20643: Removed unneeded (and wrong) class directives.

serhiy.storchaka python-checkins at python.org
Fri Sep 5 22:38:35 CEST 2014

changeset:   92354:060e347c9a23
parent:      92348:9d335a54d728
parent:      92353:bc4e26755a13
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Fri Sep 05 23:28:19 2014 +0300
  Issue #20643: Removed unneeded (and wrong) class directives.

  Doc/reference/expressions.rst |  5 +----
  1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -400,7 +400,6 @@
 is already executing raises a :exc:`ValueError` exception.
 .. index:: exception: StopIteration
-.. class:: generator
 .. method:: generator.__next__()
@@ -410,7 +409,7 @@
    :meth:`~generator.__next__` method, the current yield expression always
    evaluates to :const:`None`.  The execution then continues to the next yield
    expression, where the generator is suspended again, and the value of the
-   :token:`expression_list` is returned to :meth:`next`'s caller.  If the
+   :token:`expression_list` is returned to :meth:`__next__`'s caller.  If the
    generator exits without yielding another value, a :exc:`StopIteration`
    exception is raised.
@@ -450,8 +449,6 @@
    other exception, it is propagated to the caller.  :meth:`close` does nothing
    if the generator has already exited due to an exception or normal exit.
-.. class:: .
 .. index:: single: yield; examples

Repository URL: http://hg.python.org/cpython

More information about the Python-checkins mailing list