diff options
author | Mark Shannon <mark@hotpy.org> | 2024-01-16 09:32:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 09:32:01 (GMT) |
commit | 17b73ab99ef12f89d41acec7500a244e68b1aaa4 (patch) | |
tree | bcde8fca4dc4dae4f9ed5369a4ea23bb825f15bb /Python/traceback.c | |
parent | 6c502ba809ff662a5eebf8c6778dec6bd28918fb (diff) | |
download | cpython-17b73ab99ef12f89d41acec7500a244e68b1aaa4.zip cpython-17b73ab99ef12f89d41acec7500a244e68b1aaa4.tar.gz cpython-17b73ab99ef12f89d41acec7500a244e68b1aaa4.tar.bz2 |
GH-113655: Lower the C recursion limit on various platforms (GH-113944)
Diffstat (limited to 'Python/traceback.c')
-rw-r--r-- | Python/traceback.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Python/traceback.c b/Python/traceback.c index abd429a..7a188e5 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -965,7 +965,11 @@ dump_traceback(int fd, PyThreadState *tstate, int write_header) unsigned int depth = 0; while (1) { if (MAX_FRAME_DEPTH <= depth) { - PUTS(fd, " ...\n"); + if (MAX_FRAME_DEPTH < depth) { + PUTS(fd, "plus "); + _Py_DumpDecimal(fd, depth); + PUTS(fd, " frames\n"); + } break; } dump_frame(fd, frame); |