Mercurial > cpython-lru_cache-weakref
comparison Python/ceval.c @ 1425:72bddfad351a legacy-trunk
* 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().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 17 Dec 1993 12:09:14 +0000 |
| parents | aac8231a715c |
| children | 5243fb187d36 |
comparison
equal
deleted
inserted
replaced
| 1424:a2f2a8bd56f9 | 1425:72bddfad351a |
|---|---|
| 1708 printtraceback(f) | 1708 printtraceback(f) |
| 1709 object *f; | 1709 object *f; |
| 1710 { | 1710 { |
| 1711 object *v = tb_fetch(); | 1711 object *v = tb_fetch(); |
| 1712 if (v != NULL) { | 1712 if (v != NULL) { |
| 1713 writestring("Stack backtrace (innermost last):\n", f); | |
| 1714 tb_print(v, f); | 1713 tb_print(v, f); |
| 1715 DECREF(v); | 1714 DECREF(v); |
| 1716 } | 1715 } |
| 1717 } | 1716 } |
| 1718 | 1717 |
