summaryrefslogtreecommitdiff
path: root/Doc/reference/expressions.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-05 23:27:36 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-05 23:27:36 +0300
commitde8db99f2b447a3a8e33788515f23576f133bd32 (patch)
treeacedb3b88e53a7dd1d73bb3a8005564a83a5b3c8 /Doc/reference/expressions.rst
parenta92587f18ac0acd94e02ba78884af2daaeb2a59e (diff)
downloadcpython-de8db99f2b447a3a8e33788515f23576f133bd32.tar.gz
Issue #20643: Removed unneeded (and wrong) class directives.
Diffstat (limited to 'Doc/reference/expressions.rst')
-rw-r--r--Doc/reference/expressions.rst5
1 files changed, 1 insertions, 4 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index ddc3286f52..2b81522aab 100644
--- a/Doc/reference/expressions.rst
+++ b/Doc/reference/expressions.rst
@@ -400,7 +400,6 @@ Note that calling any of the generator methods below when the generator
is already executing raises a :exc:`ValueError` exception.
.. index:: exception: StopIteration
-.. class:: generator
.. method:: generator.__next__()
@@ -410,7 +409,7 @@ is already executing raises a :exc:`ValueError` exception.
: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 @@ is already executing raises a :exc:`ValueError` exception.
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
Examples