summaryrefslogtreecommitdiffstats
path: root/Doc/reference/compound_stmts.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-29 01:27:35 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-06-29 01:27:35 (GMT)
commitfb288dac9d096e3fa2df1efbba246919e1da4d0a (patch)
tree0b060309708d811636e0a572a248740c72184da6 /Doc/reference/compound_stmts.rst
parent3778db7b513f3e32cd3fafc25c17c77e29797634 (diff)
downloadcpython-fb288dac9d096e3fa2df1efbba246919e1da4d0a.zip
cpython-fb288dac9d096e3fa2df1efbba246919e1da4d0a.tar.gz
cpython-fb288dac9d096e3fa2df1efbba246919e1da4d0a.tar.bz2
rephrase and remove uneeded statement
Diffstat (limited to 'Doc/reference/compound_stmts.rst')
-rw-r--r--Doc/reference/compound_stmts.rst10
1 files changed, 4 insertions, 6 deletions
diff --git a/Doc/reference/compound_stmts.rst b/Doc/reference/compound_stmts.rst
index f78ddcf..39690b5 100644
--- a/Doc/reference/compound_stmts.rst
+++ b/Doc/reference/compound_stmts.rst
@@ -272,14 +272,12 @@ was translated to ::
try:
foo
finally:
- N = None
del N
-That means that you have to assign the exception to a different name if you want
-to be able to refer to it after the except clause. The reason for this is that
-with the traceback attached to them, exceptions will form a reference cycle with
-the stack frame, keeping all locals in that frame alive until the next garbage
-collection occurs.
+This means the exception must be assigned to a different name to be able to
+refer to it after the except clause. Exceptions are cleared because with the
+traceback attached to them, they form a reference cycle with the stack frame,
+keeping all locals in that frame alive until the next garbage collection occurs.
.. index::
module: sys