Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a8e59e

Browse files
committed
Clean up a sad sentence in the yield description.
1 parent c3baa0e commit 3a8e59e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/ref/ref6.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -476,11 +476,11 @@ \section{The \keyword{yield} statement \label{yield}}
476476
invoked, the function can proceed exactly as if the \keyword{yield}
477477
statement were just another external call.
478478
479-
One restriction in the use of the \keyword{yield} statement is is that
480-
is is not allowed in the try clause of a \keyword{try}
481-
...\ \keyword{finally} construct. The difficulty is that there's no
482-
guarantee the generator will ever be resumed, hence no guarantee that
483-
the \keyword{finally} block will ever get executed.
479+
The \keyword{yield} statement is not allowed in the \keyword{try}
480+
clause of a \keyword{try} ...\ \keyword{finally} construct. The
481+
difficulty is that there's no guarantee the generator will ever be
482+
resumed, hence no guarantee that the \keyword{finally} block will ever
483+
get executed.
484484
485485
\begin{seealso}
486486
\seepep{0255}{Simple Generators}

0 commit comments

Comments
 (0)