summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-01-15 21:49:22 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-01-15 21:49:22 (GMT)
commit0ad344a8322a7c69b099e25c203d675a5ea3b60d (patch)
treed4e84a69f96f2daea7862bce0b2ac4e19895a4c7 /Doc/library/sys.rst
parent6e669fba477e1f6c26f8eaf3c7efcf0613e65c7f (diff)
downloadcpython-0ad344a8322a7c69b099e25c203d675a5ea3b60d.zip
cpython-0ad344a8322a7c69b099e25c203d675a5ea3b60d.tar.gz
cpython-0ad344a8322a7c69b099e25c203d675a5ea3b60d.tar.bz2
remove warning about tb circular reference (closes #7340)
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst15
1 files changed, 0 insertions, 15 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 93273c4..6264437 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -215,21 +215,6 @@ always available.
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