summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-07-29 09:11:19 +0000
committerGeorg Brandl <georg@python.org>2007-07-29 09:11:19 +0000
commit00247d85bdedddec53b16b5a410b9e615dfa2766 (patch)
treed92d35dc7d92b53559150a725a6126c88468c51c
parent22c1525f4682055682ce64162ef584175592571e (diff)
downloadcpython-git-00247d85bdedddec53b16b5a410b9e615dfa2766.tar.gz
try-except-finally is new in 2.5.
(backport from rev. 56614)
-rw-r--r--Doc/tut/tut.tex4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/tut/tut.tex b/Doc/tut/tut.tex
index f41770443d..61d0db5060 100644
--- a/Doc/tut/tut.tex
+++ b/Doc/tut/tut.tex
@@ -3765,7 +3765,9 @@ been handled by an \keyword{except} clause (or it has occurred in a
\keyword{finally} clause has been executed. The \keyword{finally} clause
is also executed ``on the way out'' when any other clause of the
\keyword{try} statement is left via a \keyword{break}, \keyword{continue}
-or \keyword{return} statement. A more complicated example:
+or \keyword{return} statement. A more complicated example (having
+\keyword{except} and \keyword{finally} clauses in the same \keyword{try}
+statement works as of Python 2.5):
\begin{verbatim}
>>> def divide(x, y):