Kaydet (Commit) 4773b908 authored tarafından Zachary Ware's avatar Zachary Ware

Add prompts to interactive example.

This makes it match the new example below, and allows Sphinx's
"hide the prompts and output" feature to work.
üst 1512143e
...@@ -296,14 +296,14 @@ is executed. If there is a saved exception, it is re-raised at the end of the ...@@ -296,14 +296,14 @@ is executed. If there is a saved exception, it is re-raised at the end of the
exception or executes a :keyword:`return` or :keyword:`break` statement, the exception or executes a :keyword:`return` or :keyword:`break` statement, the
saved exception is discarded:: saved exception is discarded::
def f(): >>> def f():
try: ... try:
1/0 ... 1/0
finally: ... finally:
return 42 ... return 42
...
>>> f() >>> f()
42 42
The exception information is not available to the program during execution of The exception information is not available to the program during execution of
the :keyword:`finally` clause. the :keyword:`finally` clause.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment