summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-17 05:49:33 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-17 05:49:33 (GMT)
commitac3625fcb95c2c54e40e1a27f2395811adbed03e (patch)
tree7ef987a510e3ad2e43ee67ca6854cd6af23673f9 /Doc/lib
parentfc85c92a85e08d39ea769a07a3dc2a3c83c21477 (diff)
downloadcpython-ac3625fcb95c2c54e40e1a27f2395811adbed03e.zip
cpython-ac3625fcb95c2c54e40e1a27f2395811adbed03e.tar.gz
cpython-ac3625fcb95c2c54e40e1a27f2395811adbed03e.tar.bz2
Remove sys.exc_type, sys.exc_value, sys.exc_traceback
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libtraceback.tex11
1 files changed, 3 insertions, 8 deletions
diff --git a/Doc/lib/libtraceback.tex b/Doc/lib/libtraceback.tex
index b7f61ac..80dc423 100644
--- a/Doc/lib/libtraceback.tex
+++ b/Doc/lib/libtraceback.tex
@@ -12,9 +12,8 @@ when you want to print stack traces under program control, such as in a
``wrapper'' around the interpreter.
The module uses traceback objects --- this is the object type that is
-stored in the variables \code{sys.exc_traceback} (deprecated) and
-\code{sys.last_traceback} and returned as the third item from
-\function{sys.exc_info()}.
+stored in the \code{sys.last_traceback} variable and returned
+as the third item from \function{sys.exc_info()}.
\obindex{traceback}
The module defines the following functions:
@@ -41,11 +40,7 @@ with a caret indicating the approximate position of the error.
\end{funcdesc}
\begin{funcdesc}{print_exc}{\optional{limit\optional{, file}}}
-This is a shorthand for \code{print_exception(sys.exc_type,
-sys.exc_value, sys.exc_traceback, \var{limit}, \var{file})}. (In
-fact, it uses \function{sys.exc_info()} to retrieve the same
-information in a thread-safe way instead of using the deprecated
-variables.)
+This is a shorthand for \code{print_exception(*\function{sys.exc_info()}}.
\end{funcdesc}
\begin{funcdesc}{format_exc}{\optional{limit}}