Kaydet (Commit) c32cc7c1 authored tarafından Andrew M. Kuchling's avatar Andrew M. Kuchling

Delete sentence fragment (noted by Fred Bremmer)

üst 55a78992
...@@ -268,10 +268,10 @@ own class and storing all the local variables of the generator as ...@@ -268,10 +268,10 @@ own class and storing all the local variables of the generator as
instance variables. For example, returning a list of integers could instance variables. For example, returning a list of integers could
be done by setting \code{self.count} to 0, and having the be done by setting \code{self.count} to 0, and having the
\method{next()} method increment \code{self.count} and return it. \method{next()} method increment \code{self.count} and return it.
because it would be easy to write a Python class. However, for a However, for a moderately complicated generator, writing a
moderately complicated generator, writing a corresponding class would corresponding class would be much messier.
be much messier. \file{Lib/test/test_generators.py} contains a number \file{Lib/test/test_generators.py} contains a number of more
of more interesting examples. The simplest one implements an in-order interesting examples. The simplest one implements an in-order
traversal of a tree using generators recursively. traversal of a tree using generators recursively.
\begin{verbatim} \begin{verbatim}
...@@ -640,6 +640,6 @@ slot, or raise an exception if that's \NULL. ...@@ -640,6 +640,6 @@ slot, or raise an exception if that's \NULL.
The author would like to thank the following people for offering The author would like to thank the following people for offering
suggestions and corrections to various drafts of this article: Fred suggestions and corrections to various drafts of this article: Fred
L. Drake, Jr., Tim Peters, Neil Schemenauer. Bremmer, Fred L. Drake, Jr., Tim Peters, Neil Schemenauer.
\end{document} \end{document}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment