Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 848c8b2

Browse files
Issue #20643: Removed unneeded (and wrong) class directives.
1 parent 607cb9c commit 848c8b2

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

Doc/reference/expressions.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,6 @@ Note that calling any of the generator methods below when the generator
400400
is already executing raises a :exc:`ValueError` exception.
401401

402402
.. index:: exception: StopIteration
403-
.. class:: generator
404403

405404

406405
.. method:: generator.__next__()
@@ -410,7 +409,7 @@ is already executing raises a :exc:`ValueError` exception.
410409
:meth:`~generator.__next__` method, the current yield expression always
411410
evaluates to :const:`None`. The execution then continues to the next yield
412411
expression, where the generator is suspended again, and the value of the
413-
:token:`expression_list` is returned to :meth:`next`'s caller. If the
412+
:token:`expression_list` is returned to :meth:`__next__`'s caller. If the
414413
generator exits without yielding another value, a :exc:`StopIteration`
415414
exception is raised.
416415

@@ -450,8 +449,6 @@ is already executing raises a :exc:`ValueError` exception.
450449
other exception, it is propagated to the caller. :meth:`close` does nothing
451450
if the generator has already exited due to an exception or normal exit.
452451

453-
.. class:: .
454-
455452
.. index:: single: yield; examples
456453

457454
Examples

0 commit comments

Comments
 (0)