mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Add traceback.format_exc().
This commit is contained in:
parent
904ed86a77
commit
f607fc5395
4 changed files with 22 additions and 7 deletions
|
@ -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})}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue