summaryrefslogtreecommitdiffstats
path: root/Doc/ref
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-12-11 21:58:35 (GMT)
committerFred Drake <fdrake@acm.org>2001-12-11 21:58:35 (GMT)
commit3a8e59ebe158d1fed37e9e916e1fa7b8af24a5d8 (patch)
tree43330e6ccd48b7965fa74fe6c8507ca2eb83ae41 /Doc/ref
parentc3baa0eff75baec3f4d8d82f2f9994d376cf5e3d (diff)
downloadcpython-3a8e59ebe158d1fed37e9e916e1fa7b8af24a5d8.zip
cpython-3a8e59ebe158d1fed37e9e916e1fa7b8af24a5d8.tar.gz
cpython-3a8e59ebe158d1fed37e9e916e1fa7b8af24a5d8.tar.bz2
Clean up a sad sentence in the yield description.
Diffstat (limited to 'Doc/ref')
-rw-r--r--Doc/ref/ref6.tex10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex
index bd91c11..1f1486b 100644
--- a/Doc/ref/ref6.tex
+++ b/Doc/ref/ref6.tex
@@ -476,11 +476,11 @@ enough information is saved so that the next time \method{next()} is
invoked, the function can proceed exactly as if the \keyword{yield}
statement were just another external call.
-One restriction in the use of the \keyword{yield} statement is is that
-is is not allowed in the try clause of a \keyword{try}
-...\ \keyword{finally} construct. The difficulty is that there's no
-guarantee the generator will ever be resumed, hence no guarantee that
-the \keyword{finally} block will ever get executed.
+The \keyword{yield} statement is not allowed in the \keyword{try}
+clause of a \keyword{try} ...\ \keyword{finally} construct. The
+difficulty is that there's no guarantee the generator will ever be
+resumed, hence no guarantee that the \keyword{finally} block will ever
+get executed.
\begin{seealso}
\seepep{0255}{Simple Generators}