summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2014-05-06 14:19:16 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2014-05-06 14:19:16 (GMT)
commited49265b91222b1c1c7e5fe9c923cbd7651d788d (patch)
treefa30a372adf8dea5c0b0b0a84cfc6f18ab534f0c /Doc/reference
parent4e6688d2b29183cae7796b2459a5b87143c3e36f (diff)
parent9fafc9f79a0510cd7f7357fcbb8cfffb6f967c6c (diff)
downloadcpython-ed49265b91222b1c1c7e5fe9c923cbd7651d788d.zip
cpython-ed49265b91222b1c1c7e5fe9c923cbd7651d788d.tar.gz
cpython-ed49265b91222b1c1c7e5fe9c923cbd7651d788d.tar.bz2
Merge with 3.4
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/compound_stmts.rst16
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index 869eef4..5e093cc 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -313,14 +313,14 @@ 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:
- 1/0
- finally:
- return 42
-
- >>> f()
- 42
+ >>> def f():
+ ... try:
+ ... 1/0
+ ... finally:
+ ... return 42
+ ...
+ >>> f()
+ 42
The exception information is not available to the program during execution of
the :keyword:`finally` clause.