From: Victor Stinner Date: Mon, 30 Jul 2012 11:08:58 +0000 (+0200) Subject: Issue #15463: the faulthandler module truncates strings to 500 characters, X-Git-Tag: v3.3.0b2~86^2~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54f939b9ae9cf91ed4cb3cd1b0f1e6aaff19782a;p=python Issue #15463: the faulthandler module truncates strings to 500 characters, instead of 100, to be able to display long file paths --- diff --git a/Misc/NEWS b/Misc/NEWS index 15ef12b2cf..ba367510af 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -68,6 +68,9 @@ Core and Builtins Library ------- +- Issue #15463: the faulthandler module truncates strings to 500 characters, + instead of 100, to be able to display long file paths + - Issue #6056: Make multiprocessing use setblocking(True) on the sockets it uses. Original patch by J Derek Wilson. diff --git a/Python/traceback.c b/Python/traceback.c index ce670f3d2c..b928902ef0 100644 --- a/Python/traceback.c +++ b/Python/traceback.c @@ -14,7 +14,7 @@ #define OFF(x) offsetof(PyTracebackObject, x) #define PUTS(fd, str) write(fd, str, strlen(str)) -#define MAX_STRING_LENGTH 100 +#define MAX_STRING_LENGTH 500 #define MAX_FRAME_DEPTH 100 #define MAX_NTHREADS 100