[Python-checkins] cpython (merge 3.3 -> default): merge 3.3 (#7340)

benjamin.peterson python-checkins at python.org
Tue Jan 15 22:49:44 CET 2013


http://hg.python.org/cpython/rev/d866bbdd68e8
changeset:   81537:d866bbdd68e8
parent:      81535:c044029ede9d
parent:      81536:3fa3e7975724
user:        Benjamin Peterson <benjamin at python.org>
date:        Tue Jan 15 16:49:35 2013 -0500
summary:
  merge 3.3 (#7340)

files:
  Doc/library/sys.rst |  15 ---------------
  1 files changed, 0 insertions(+), 15 deletions(-)


diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -215,21 +215,6 @@
    a traceback object (see the Reference Manual) which encapsulates the call
    stack at the point where the exception originally occurred.
 
-   .. warning::
-
-      Assigning the *traceback* return value to a local variable in a function
-      that is handling an exception will cause a circular reference.  Since most
-      functions don't need access to the traceback, the best solution is to use
-      something like ``exctype, value = sys.exc_info()[:2]`` to extract only the
-      exception type and value.  If you do need the traceback, make sure to
-      delete it after use (best done with a :keyword:`try`
-      ... :keyword:`finally` statement) or to call :func:`exc_info` in a
-      function that does not itself handle an exception.
-
-      Such cycles are normally automatically reclaimed when garbage collection
-      is enabled and they become unreachable, but it remains more efficient to
-      avoid creating cycles.
-
 
 .. data:: exec_prefix
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list