mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
* mpzmodule.c: cast some methods to the proper type.
* traceback.c (tb_print): use sys.tracebacklimit as a maximum number of traceback entries to print (default 1000). * ceval.c (printtraceback): Don't print stack trace header -- this is now done by tb_print().
This commit is contained in:
parent
ad7324c71f
commit
67a5fdbcc2
3 changed files with 31 additions and 12 deletions
|
@ -1710,7 +1710,6 @@ printtraceback(f)
|
|||
{
|
||||
object *v = tb_fetch();
|
||||
if (v != NULL) {
|
||||
writestring("Stack backtrace (innermost last):\n", f);
|
||||
tb_print(v, f);
|
||||
DECREF(v);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue