
python-checkins at python
Aug 17, 2012, 5:50 PM
Post #1 of 1
(34 views)
Permalink
|
|
cpython (3.2): #15355: Mention already-executing Exception in generator docs.
|
|
http://hg.python.org/cpython/rev/dc4b00f51c48 changeset: 78630:dc4b00f51c48 branch: 3.2 parent: 78628:083c37e75c49 user: R David Murray <rdmurray [at] bitdance> date: Fri Aug 17 20:48:59 2012 -0400 summary: #15355: Mention already-executing Exception in generator docs. Patch by Chris Jerdonek. files: Doc/reference/expressions.rst | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -354,8 +354,15 @@ .. 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 -- Repository URL: http://hg.python.org/cpython
|