Commit 1aca6e1a authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #20643: Removed unneeded (and wrong) class directives.

parents 0e395240 848c8b29
...@@ -400,7 +400,6 @@ Note that calling any of the generator methods below when the generator ...@@ -400,7 +400,6 @@ Note that calling any of the generator methods below when the generator
is already executing raises a :exc:`ValueError` exception. is already executing raises a :exc:`ValueError` exception.
.. index:: exception: StopIteration .. index:: exception: StopIteration
.. class:: generator
.. method:: generator.__next__() .. method:: generator.__next__()
...@@ -410,7 +409,7 @@ is already executing raises a :exc:`ValueError` exception. ...@@ -410,7 +409,7 @@ is already executing raises a :exc:`ValueError` exception.
:meth:`~generator.__next__` method, the current yield expression always :meth:`~generator.__next__` method, the current yield expression always
evaluates to :const:`None`. The execution then continues to the next yield evaluates to :const:`None`. The execution then continues to the next yield
expression, where the generator is suspended again, and the value of the 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` generator exits without yielding another value, a :exc:`StopIteration`
exception is raised. exception is raised.
...@@ -450,8 +449,6 @@ is already executing raises a :exc:`ValueError` exception. ...@@ -450,8 +449,6 @@ is already executing raises a :exc:`ValueError` exception.
other exception, it is propagated to the caller. :meth:`close` does nothing 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. if the generator has already exited due to an exception or normal exit.
.. class:: .
.. index:: single: yield; examples .. index:: single: yield; examples
Examples Examples
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment