[Python-checkins] CVS: python/dist/src/Doc/ref ref7.tex,1.22,1.23
Jeremy Hylton
jhylton@users.sourceforge.net
Thu, 01 Feb 2001 14:48:14 -0800
Update of /cvsroot/python/python/dist/src/Doc/ref
In directory usw-pr-cvs1:/tmp/cvs-serv23698/Doc/ref
Modified Files:
ref7.tex
Log Message:
Allow 'continue' inside 'try' clause
SF patch 102989 by Thomas Wouters
Index: ref7.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/ref/ref7.tex,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** ref7.tex 2001/01/02 19:22:48 1.22
--- ref7.tex 2001/02/01 22:48:12 1.23
***************
*** 261,275 ****
\keyword{finally} clause is executed, and then the saved exception is
re-raised. If the \keyword{finally} clause raises another exception or
! executes a \keyword{return}, \keyword{break} or \keyword{continue} statement,
! the saved exception is lost. The exception information is not
! available to the program during execution of the \keyword{finally}
! clause.
\kwindex{finally}
! When a \keyword{return} or \keyword{break} statement is executed in the
! \keyword{try} suite of a \keyword{try}...\keyword{finally} statement, the
! \keyword{finally} clause is also executed `on the way out.' A
! \keyword{continue} statement is illegal in the \keyword{try} clause. (The
! reason is a problem with the current implementation --- this
restriction may be lifted in the future).
\stindex{return}
--- 261,277 ----
\keyword{finally} clause is executed, and then the saved exception is
re-raised. If the \keyword{finally} clause raises another exception or
! executes a \keyword{return} or \keyword{break} statement, the saved
! exception is lost. A \keyword{continue} statement is illegal in the
! \keyword{finally} clause. (The reason is a problem with the current
! implementation -- thsi restriction may be lifted in the future). The
! exception information is not available to the program during execution of
! the \keyword{finally} clause.
\kwindex{finally}
! When a \keyword{return}, \keyword{break} or \keyword{continue} statement is
! executed in the \keyword{try} suite of a \keyword{try}...\keyword{finally}
! statement, the \keyword{finally} clause is also executed `on the way out.' A
! \keyword{continue} statement is illegal in the \keyword{finally} clause.
! (The reason is a problem with the current implementation --- this
restriction may be lifted in the future).
\stindex{return}