]> granicus.if.org Git - python/commitdiff
Issue #15463: the faulthandler module truncates strings to 500 characters,
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Jul 2012 11:08:58 +0000 (13:08 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Jul 2012 11:08:58 +0000 (13:08 +0200)
instead of 100, to be able to display long file paths

Misc/NEWS
Python/traceback.c

index 15ef12b2cfab8acf965cf90f8dc9577de855dd7a..ba367510afa20b7ef14814c3c860329606154e08 100644 (file)
--- 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.
 
index ce670f3d2cb4dcef17198d251f84429ff6ea8a9e..b928902ef02447ff62786d57de3661e042200b47 100644 (file)
@@ -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