From ae9a09b49dd35c91ef59f3c34ce16324fa8bdb0e Mon Sep 17 00:00:00 2001 From: "georg.brandl" Date: Mon, 12 May 2008 17:14:51 +0000 Subject: [PATCH] #1760: try-except-finally is one statement since PEP 341. git-svn-id: http://svn.python.org/projects/python/trunk@63175 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Doc/reference/executionmodel.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/reference/executionmodel.rst b/Doc/reference/executionmodel.rst index c5a24e9ca0..0d15657d8a 100644 --- a/Doc/reference/executionmodel.rst +++ b/Doc/reference/executionmodel.rst @@ -203,10 +203,10 @@ the code block where the error occurred. The Python interpreter raises an exception when it detects a run-time error (such as division by zero). A Python program can also explicitly raise an exception with the :keyword:`raise` statement. Exception handlers are specified -with the :keyword:`try` ... :keyword:`except` statement. The :keyword:`try` ... -:keyword:`finally` statement specifies cleanup code which does not handle the -exception, but is executed whether an exception occurred or not in the preceding -code. +with the :keyword:`try` ... :keyword:`except` statement. The :keyword:`finally` +clause of such a statement can be used to specify cleanup code which does not +handle the exception, but is executed whether an exception occurred or not in +the preceding code. .. index:: single: termination model -- 2.11.4.GIT