summaryrefslogtreecommitdiff
path: root/Doc/reference
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-06-29 01:27:35 +0000
committerBenjamin Peterson <benjamin@python.org>2010-06-29 01:27:35 +0000
commit802379e8b9e07c71435d5bfcc96a78c50cccbc24 (patch)
tree70491c5125e511129b8c6dab36aa7432b9004392 /Doc/reference
parentca6ade4996858287337d8a049fefadff767639f9 (diff)
downloadcpython-802379e8b9e07c71435d5bfcc96a78c50cccbc24.tar.gz
rephrase and remove uneeded statement
Diffstat (limited to 'Doc/reference')
-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 f78ddcff7e..39690b510c 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