mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Added sentence "All exceptions must have an executable block."; from
Dan Wolfe <wolfeman@apple.com>.
This commit is contained in:
parent
b68a125d64
commit
4c2533fe3c
1 changed files with 2 additions and 1 deletions
|
|
@ -218,7 +218,8 @@ raised the exception).
|
|||
|
||||
When a matching except clause is found, the exception's parameter is
|
||||
assigned to the target specified in that except clause, if present,
|
||||
and the except clause's suite is executed. When the end of this suite
|
||||
and the except clause's suite is executed. All except clauses must
|
||||
have an executable block. When the end of this block
|
||||
is reached, execution continues normally after the entire try
|
||||
statement. (This means that if two nested handlers exist for the same
|
||||
exception, and the exception occurs in the try clause of the inner
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue