https://github.com/python/cpython/commit/499706b843144b1bae3a4712ac8d75a4eb337ecf
commit: 499706b843144b1bae3a4712ac8d75a4eb337ecf
branch: main
author: Mohammad Miadh Angkad <[email protected]>
committer: Fidget-Spinner <[email protected]>
date: 2026-01-14T20:37:13Z
summary:

GH-143842: Make optimizer color table static (GH-143846)

files:
A Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst
M Python/optimizer.c

diff --git 
a/Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst 
b/Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst
new file mode 100644
index 00000000000000..4d5b1146463568
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2026-01-15-03-36-16.gh-issue-143842.EZLutl.rst
@@ -0,0 +1,2 @@
+Prevent static builds from clashing with curses by making the optimizer
+COLORS table static.
diff --git a/Python/optimizer.c b/Python/optimizer.c
index a2a1feb8b9e147..c5f47d7f22c3f0 100644
--- a/Python/optimizer.c
+++ b/Python/optimizer.c
@@ -2009,7 +2009,7 @@ find_line_number(PyCodeObject *code, _PyExecutorObject 
*executor)
 #define BLACK "#000000"
 #define LOOP "#00c000"
 
-const char *COLORS[10] = {
+static const char *COLORS[10] = {
     "9",
     "8",
     "7",

_______________________________________________
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