diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-01-15 21:49:35 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-01-15 21:49:35 (GMT) |
commit | 184f01544fd35e990f3de5325567a9efe3b24217 (patch) | |
tree | d3d81e18b56670b1a4dafb6f5bf614c41f93beae | |
parent | 215c49a509cfb71176e2c936d29a095fd7db0e8b (diff) | |
parent | 0ad344a8322a7c69b099e25c203d675a5ea3b60d (diff) | |
download | cpython-184f01544fd35e990f3de5325567a9efe3b24217.zip cpython-184f01544fd35e990f3de5325567a9efe3b24217.tar.gz cpython-184f01544fd35e990f3de5325567a9efe3b24217.tar.bz2 |
merge 3.3 (#7340)
-rw-r--r-- | Doc/library/sys.rst | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index a906cde..baae60e 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 |