summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libtraceback.tex
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2003-11-05 23:03:00 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2003-11-05 23:03:00 (GMT)
commitf607fc5395883ff924c76739e9b0921953568e54 (patch)
treeb48054ff714054bf4390059345215feba4a3703b /Doc/lib/libtraceback.tex
parent904ed86a777f5e55d370e997f8efb433052ca6e3 (diff)
downloadcpython-f607fc5395883ff924c76739e9b0921953568e54.zip
cpython-f607fc5395883ff924c76739e9b0921953568e54.tar.gz
cpython-f607fc5395883ff924c76739e9b0921953568e54.tar.bz2
Add traceback.format_exc().
Diffstat (limited to 'Doc/lib/libtraceback.tex')
-rw-r--r--Doc/lib/libtraceback.tex5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/lib/libtraceback.tex b/Doc/lib/libtraceback.tex
index 9778c83..eee898e 100644
--- a/Doc/lib/libtraceback.tex
+++ b/Doc/lib/libtraceback.tex
@@ -48,6 +48,11 @@ information in a thread-safe way instead of using the deprecated
variables.)
\end{funcdesc}
+\begin{funcdesc}{format_exc}{\optional{limit\optional{, file}}}
+This is like \code{print_exc(\var{limit})} but returns a string
+instead of printing to a file.
+\end{funcdesc}
+
\begin{funcdesc}{print_last}{\optional{limit\optional{, file}}}
This is a shorthand for \code{print_exception(sys.last_type,
sys.last_value, sys.last_traceback, \var{limit}, \var{file})}.