#15355: Mention already-executing Exception in generator docs.
Patch by Chris Jerdonek.
This commit is contained in:
parent
73b19d0b00
commit
85307b46d1
|
@ -421,8 +421,15 @@ transferred to the generator's caller.
|
||||||
|
|
||||||
.. index:: object: generator
|
.. index:: object: generator
|
||||||
|
|
||||||
The following generator's methods can be used to control the execution of a
|
|
||||||
generator function:
|
Generator-iterator methods
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
This subsection describes the methods of a generator iterator. They can
|
||||||
|
be used to control the execution of a generator function.
|
||||||
|
|
||||||
|
Note that calling any of the generator methods below when the generator
|
||||||
|
is already executing raises a :exc:`ValueError` exception.
|
||||||
|
|
||||||
.. index:: exception: StopIteration
|
.. index:: exception: StopIteration
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue