File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -400,7 +400,6 @@ Note that calling any of the generator methods below when the generator
400400is 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
457454Examples
You can’t perform that action at this time.
0 commit comments