mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Reflect change in traceback format:
"innermost last" --> "most recent call last"
This commit is contained in:
parent
15ad28cf89
commit
162c6a637a
3 changed files with 14 additions and 14 deletions
|
@ -48,7 +48,7 @@ Typical usage to inspect a crashed program is:
|
|||
>>> import pdb
|
||||
>>> import mymodule
|
||||
>>> mymodule.test()
|
||||
Traceback (innermost last):
|
||||
Traceback (most recent call last):
|
||||
File "<stdin>", line 1, in ?
|
||||
File "./mymodule.py", line 4, in test
|
||||
test2()
|
||||
|
|
|
@ -33,7 +33,7 @@ Print exception information and up to \var{limit} stack trace entries
|
|||
from \var{traceback} to \var{file}.
|
||||
This differs from \function{print_tb()} in the
|
||||
following ways: (1) if \var{traceback} is not \code{None}, it prints a
|
||||
header \samp{Traceback (innermost last):}; (2) it prints the
|
||||
header \samp{Traceback (most recent call last):}; (2) it prints the
|
||||
exception \var{type} and \var{value} after the stack trace; (3) if
|
||||
\var{type} is \exception{SyntaxError} and \var{value} has the appropriate
|
||||
format, it prints the line where the syntax error occurred with a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue