]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
try-except-finally is new in 2.5.
authorGeorg Brandl <georg@python.org>
Sun, 29 Jul 2007 09:11:19 +0000 (09:11 +0000)
committerGeorg Brandl <georg@python.org>
Sun, 29 Jul 2007 09:11:19 +0000 (09:11 +0000)
 (backport from rev. 56614)

Doc/tut/tut.tex

index f41770443d4ac28c034f5b21ae2722e727f38ec7..61d0db5060a7284d0b62d3be472d378f2a29058b 100644 (file)
@@ -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):