diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-01 22:48:12 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-02-01 22:48:12 (GMT) |
commit | 3faa52ecc4aeb30f8913b4dd105184f6f7bc733d (patch) | |
tree | d4c6c78e934c98ef15aaf79fae249063b5a41a1b /Doc/ref | |
parent | 1bbc04831071891c5bbeb53a2c1defbbf83245d9 (diff) | |
download | cpython-3faa52ecc4aeb30f8913b4dd105184f6f7bc733d.zip cpython-3faa52ecc4aeb30f8913b4dd105184f6f7bc733d.tar.gz cpython-3faa52ecc4aeb30f8913b4dd105184f6f7bc733d.tar.bz2 |
Allow 'continue' inside 'try' clause
SF patch 102989 by Thomas Wouters
Diffstat (limited to 'Doc/ref')
-rw-r--r-- | Doc/ref/ref7.tex | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Doc/ref/ref7.tex b/Doc/ref/ref7.tex index d5db0a8..b8fac0b 100644 --- a/Doc/ref/ref7.tex +++ b/Doc/ref/ref7.tex @@ -260,17 +260,19 @@ The \keyword{try}...\keyword{finally} form specifies a `cleanup' handler. The \keyword{try} clause, the exception is temporarily saved, the \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. +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} 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 +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} \stindex{break} |