diff options
author | Georg Brandl <georg@python.org> | 2008-05-12 17:14:51 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-12 17:14:51 (GMT) |
commit | feb0921f9f1a047f118775f74d90df00f93a1502 (patch) | |
tree | 91d9e3aa3ca696b6d47d482d0b71c6125cf59838 | |
parent | 1b4758d2769858c75c6ef301ba995272a0a314f3 (diff) | |
download | cpython-feb0921f9f1a047f118775f74d90df00f93a1502.zip cpython-feb0921f9f1a047f118775f74d90df00f93a1502.tar.gz cpython-feb0921f9f1a047f118775f74d90df00f93a1502.tar.bz2 |
#1760: try-except-finally is one statement since PEP 341.
-rw-r--r-- | Doc/reference/executionmodel.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/reference/executionmodel.rst b/Doc/reference/executionmodel.rst index c5a24e9..0d15657 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 |