https://github.com/python/cpython/commit/b406d85603d5099e415da04e7b6559a51f145595
commit: b406d85603d5099e415da04e7b6559a51f145595
branch: 3.14
author: sunmy2019 <[email protected]>
committer: vstinner <[email protected]>
date: 2026-04-01T15:12:44+02:00
summary:

[3.14] gh-146615: Fix format specifiers in extension modules (GH-146617) 
(#147704)

Fix format specifier in parse_task_name() for long result.

files:
M Modules/_remote_debugging_module.c

diff --git a/Modules/_remote_debugging_module.c 
b/Modules/_remote_debugging_module.c
index 3706a287c3a1ed..a32777225817ea 100644
--- a/Modules/_remote_debugging_module.c
+++ b/Modules/_remote_debugging_module.c
@@ -934,7 +934,7 @@ parse_task_name(
             set_exception_cause(unwinder, PyExc_RuntimeError, "Task name 
PyLong parsing failed");
             return NULL;
         }
-        return PyUnicode_FromFormat("Task-%d", res);
+        return PyUnicode_FromFormat("Task-%ld", res);
     }
 
     if(!(GET_MEMBER(unsigned long, type_obj, 
unwinder->debug_offsets.type_object.tp_flags) & Py_TPFLAGS_UNICODE_SUBCLASS)) {

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to