[Python-checkins] r46059 - python/trunk/Doc/whatsnew/whatsnew25.tex
andrew.kuchling
python-checkins at python.org
Sat May 20 21:25:17 CEST 2006
Author: andrew.kuchling
Date: Sat May 20 21:25:16 2006
New Revision: 46059
Modified:
python/trunk/Doc/whatsnew/whatsnew25.tex
Log:
Minor edits
Modified: python/trunk/Doc/whatsnew/whatsnew25.tex
==============================================================================
--- python/trunk/Doc/whatsnew/whatsnew25.tex (original)
+++ python/trunk/Doc/whatsnew/whatsnew25.tex Sat May 20 21:25:16 2006
@@ -405,7 +405,7 @@
Python 2.5 adds a simple way to pass values \emph{into} a generator.
As introduced in Python 2.3, generators only produce output; once a
-generator's code is invoked to create an iterator, there's no way to
+generator's code was invoked to create an iterator, there was no way to
pass any new information into the function when its execution is
resumed. Sometimes the ability to pass in some information would be
useful. Hackish solutions to this include making the generator's code
@@ -525,8 +525,8 @@
Generators also become \emph{coroutines}, a more generalized form of
subroutines. Subroutines are entered at one point and exited at
-another point (the top of the function, and a \keyword{return
-statement}), but coroutines can be entered, exited, and resumed at
+another point (the top of the function, and a \keyword{return}
+statement), but coroutines can be entered, exited, and resumed at
many different points (the \keyword{yield} statements). We'll have to
figure out patterns for using coroutines effectively in Python.
More information about the Python-checkins
mailing list