]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
rephrase and remove uneeded statement
authorBenjamin Peterson <benjamin@python.org>
Tue, 29 Jun 2010 01:27:35 +0000 (01:27 +0000)
committerBenjamin Peterson <benjamin@python.org>
Tue, 29 Jun 2010 01:27:35 +0000 (01:27 +0000)
Doc/reference/compound_stmts.rst

index f78ddcff7e40ab77c80d74e633d2be9d5f77ed5a..39690b510cc6ad5618f737c376345a8bb79c158b 100644 (file)
@@ -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