fixes #930
This commit is contained in:
parent
2b9b09e052
commit
61c1fd6944
1 changed files with 5 additions and 2 deletions
|
|
@ -47,8 +47,8 @@ the rest of the procedure - that is not within a ``finally`` clause -
|
||||||
is not executed (if an exception occurs).
|
is not executed (if an exception occurs).
|
||||||
|
|
||||||
|
|
||||||
Except and finally statements
|
Standalone except and finally statements
|
||||||
-----------------------------
|
----------------------------------------
|
||||||
|
|
||||||
``except`` and ``finally`` can also be used as a stand-alone statements.
|
``except`` and ``finally`` can also be used as a stand-alone statements.
|
||||||
Any statements following them in the current block will be considered to be
|
Any statements following them in the current block will be considered to be
|
||||||
|
|
@ -76,6 +76,9 @@ statements. Example:
|
||||||
echo "4. Post exception"
|
echo "4. Post exception"
|
||||||
# --> 1, 2, 3 is printed, 4 is never reached
|
# --> 1, 2, 3 is printed, 4 is never reached
|
||||||
|
|
||||||
|
Top level standalone ``finally`` or ``except`` statements are not supported
|
||||||
|
since it's unclear what such a statement should refer to.
|
||||||
|
|
||||||
|
|
||||||
Raise statement
|
Raise statement
|
||||||
---------------
|
---------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue