diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-05 20:27:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-05 20:27:36 (GMT) |
commit | 848c8b29f697a370648a3858a74a5fbd0c305bbd (patch) | |
tree | 91da12018dd709665cdaa8e6e955cf422271b700 | |
parent | 607cb9cf99878e0965e43464652a0af8f5ef709a (diff) | |
download | cpython-848c8b29f697a370648a3858a74a5fbd0c305bbd.zip cpython-848c8b29f697a370648a3858a74a5fbd0c305bbd.tar.gz cpython-848c8b29f697a370648a3858a74a5fbd0c305bbd.tar.bz2 |
Issue #20643: Removed unneeded (and wrong) class directives.
-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 ddc3286..2b81522 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 |