diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-05 20:28:19 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-05 20:28:19 (GMT) |
commit | 1aca6e1a91f1907a490442219c81c3998be12be1 (patch) | |
tree | 096372484e1455cf2b76381911f5a966e0c85827 /Doc/reference | |
parent | 0e395240cbf0f14dd98c79c195b1d2a1e54f2d49 (diff) | |
parent | 848c8b29f697a370648a3858a74a5fbd0c305bbd (diff) | |
download | cpython-1aca6e1a91f1907a490442219c81c3998be12be1.zip cpython-1aca6e1a91f1907a490442219c81c3998be12be1.tar.gz cpython-1aca6e1a91f1907a490442219c81c3998be12be1.tar.bz2 |
Issue #20643: Removed unneeded (and wrong) class directives.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/expressions.rst | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 27ff04a..7a93a39 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 |