[Python-checkins] r82354 - python/branches/py3k/Doc/reference/compound_stmts.rst

benjamin.peterson python-checkins at python.org
Tue Jun 29 03:27:35 CEST 2010


Author: benjamin.peterson
Date: Tue Jun 29 03:27:35 2010
New Revision: 82354

Log:
rephrase and remove uneeded statement

Modified:
   python/branches/py3k/Doc/reference/compound_stmts.rst

Modified: python/branches/py3k/Doc/reference/compound_stmts.rst
==============================================================================
--- python/branches/py3k/Doc/reference/compound_stmts.rst	(original)
+++ python/branches/py3k/Doc/reference/compound_stmts.rst	Tue Jun 29 03:27:35 2010
@@ -272,14 +272,12 @@
        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


More information about the Python-checkins mailing list