changeset: 79150:f5ed3a5440b2 parent: 79148:62ddf16eea24 parent: 79149:485902ecf0ee user: Mark Dickinson date: Mon Sep 24 20:17:17 2012 +0100 description: Issue #14167: merge fix from 3.2 branch. diff -r 62ddf16eea24 -r f5ed3a5440b2 Doc/reference/compound_stmts.rst --- a/Doc/reference/compound_stmts.rst Mon Sep 24 17:31:37 2012 +0300 +++ b/Doc/reference/compound_stmts.rst Mon Sep 24 20:17:17 2012 +0100 @@ -307,11 +307,11 @@ :keyword:`try` clause is executed, including any :keyword:`except` and :keyword:`else` clauses. If an exception occurs in any of the clauses and is not handled, the exception is temporarily saved. The :keyword:`finally` clause -is executed. If there is a saved exception or :keyword:`break` statement, -it is re-raised at the end of the :keyword:`finally` clause. If the -:keyword:`finally` clause raises another exception the saved exception -is set as the context of the new exception; if the :keyword:`finally` clause -executes a :keyword:`return` statement, the saved exception is discarded:: +is executed. If there is a saved exception it is re-raised at the end of the +:keyword:`finally` clause. If the :keyword:`finally` clause raises another +exception, the saved exception is set as the context of the new exception. +If the :keyword:`finally` clause executes a :keyword:`return` or :keyword:`break` +statement, the saved exception is discarded:: def f(): try:

AltStyle によって変換されたページ (->オリジナル) /