
python-checkins at python
Aug 17, 2012, 5:50 PM
Post #1 of 1
(37 views)
Permalink
|
|
cpython (2.7): #15355: Mention already-executing Exception in generator docs.
|
|
http://hg.python.org/cpython/rev/a62309ae88a2 changeset: 78632:a62309ae88a2 branch: 2.7 parent: 78621:85cd54b2d3a1 user: R David Murray <rdmurray [at] bitdance> date: Fri Aug 17 20:49:51 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 @@ -421,8 +421,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
|