[Python-checkins] r69294 - python/branches/py3k/Doc/reference/simple_stmts.rst

georg.brandl python-checkins at python.org
Thu Feb 5 12:01:54 CET 2009


Author: georg.brandl
Date: Thu Feb  5 12:01:54 2009
New Revision: 69294

Log:
#4992: next() method -> next() function.

Modified:
   python/branches/py3k/Doc/reference/simple_stmts.rst

Modified: python/branches/py3k/Doc/reference/simple_stmts.rst
==============================================================================
--- python/branches/py3k/Doc/reference/simple_stmts.rst	(original)
+++ python/branches/py3k/Doc/reference/simple_stmts.rst	Thu Feb  5 12:01:54 2009
@@ -441,14 +441,14 @@
 create a generator function instead of a normal function.
 When a generator function is called, it returns an iterator known as a generator
 iterator, or more commonly, a generator.  The body of the generator function is
-executed by calling the generator's :meth:`next` method repeatedly until it
-raises an exception.
+executed by calling the :func:`next` function on the generator repeatedly until
+it raises an exception.
 
 When a :keyword:`yield` statement is executed, the state of the generator is
 frozen and the value of :token:`expression_list` is returned to :meth:`next`'s
 caller.  By "frozen" we mean that all local state is retained, including the
 current bindings of local variables, the instruction pointer, and the internal
-evaluation stack: enough information is saved so that the next time :meth:`next`
+evaluation stack: enough information is saved so that the next time :func:`next`
 is invoked, the function can proceed exactly as if the :keyword:`yield`
 statement were just another external call.
 


More information about the Python-checkins mailing list