Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 43b34da

Browse files
committed
extract_tb(): Only describe this function once. Problem reported by
Jonathan Giddy <[email protected]>.
1 parent 3906363 commit 43b34da

1 file changed

Lines changed: 12 additions & 23 deletions

File tree

Doc/lib/libtraceback.tex

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,8 @@ \section{\module{traceback} ---
2828
object to receive the output.
2929
\end{funcdesc}
3030

31-
\begin{funcdesc}{extract_tb}{traceback\optional{, limit}}
32-
Return a list of up to \var{limit} ``pre-processed'' stack trace
33-
entries extracted from \var{traceback}. It is useful for alternate
34-
formatting of stack traces. If \var{limit} is omitted or \code{None},
35-
all entries are extracted. A ``pre-processed'' stack trace entry is a
36-
quadruple (\var{filename}, \var{line number}, \var{function name},
37-
\var{line text}) representing the information that is usually printed
38-
for a stack trace. The \var{line text} is a string with leading and
39-
trailing whitespace stripped; if the source is not available it is
40-
\code{None}.
41-
\end{funcdesc}
42-
43-
\begin{funcdesc}{print_exception}{type, value,
44-
traceback\optional{, limit\optional{, file}}}
31+
\begin{funcdesc}{print_exception}{type, value, traceback\optional{,
32+
limit\optional{, file}}}
4533
Print exception information and up to \var{limit} stack trace entries
4634
from \var{traceback} to \var{file}.
4735
This differs from \function{print_tb()} in the
@@ -73,15 +61,16 @@ \section{\module{traceback} ---
7361
same meaning as for \function{print_exception()}.
7462
\end{funcdesc}
7563

76-
\begin{funcdesc}{extract_tb}{tb\optional{, limit}}
77-
Return a list containing the raw (unformatted) traceback information
78-
extracted from the traceback object \var{tb}. The optional
79-
\var{limit} argument has the same meaning as for
80-
\function{print_exception()}. The items in the returned list are
81-
4-tuples containing the following values: filename, line number,
82-
function name, and source text line. The source text line is stripped
83-
of leading and trailing whitespace; it is \code{None} when the source
84-
text file is unavailable.
64+
\begin{funcdesc}{extract_tb}{traceback\optional{, limit}}
65+
Return a list of up to \var{limit} ``pre-processed'' stack trace
66+
entries extracted from the traceback object \var{traceback}. It is
67+
useful for alternate formatting of stack traces. If \var{limit} is
68+
omitted or \code{None}, all entries are extracted. A
69+
``pre-processed'' stack trace entry is a quadruple (\var{filename},
70+
\var{line number}, \var{function name}, \var{text}) representing
71+
the information that is usually printed for a stack trace. The
72+
\var{text} is a string with leading and trailing whitespace
73+
stripped; if the source is not available it is \code{None}.
8574
\end{funcdesc}
8675

8776
\begin{funcdesc}{extract_stack}{\optional{f\optional{, limit}}}

0 commit comments

Comments
 (0)