]> granicus.if.org Git - python/commitdiff
Minor edits
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 20 May 2006 19:25:16 +0000 (19:25 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 20 May 2006 19:25:16 +0000 (19:25 +0000)
Doc/whatsnew/whatsnew25.tex

index 2d7dd609b263540422b16ac4f95a59026c980a4e..7b1c8f09f37bb6ab50c2c3a194a7fb361933ad9a 100644 (file)
@@ -405,7 +405,7 @@ implementation by Thomas Lee.}
 
 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 @@ one-way producers of information into both producers and consumers.
 
 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.