https://github.com/python/cpython/commit/de22e718bb5c57ec4178aa1787d7634cfc649261
commit: de22e718bb5c57ec4178aa1787d7634cfc649261
branch: main
author: Yongtao Huang <[email protected]>
committer: Fidget-Spinner <[email protected]>
date: 2025-12-26T11:11:11Z
summary:

Remove redundant pycore_optimizer.h includes (#143184)

`pycore_optimizer.h` was included redundantly in
Objects/frameobject.c and Python/instrumentation.c.
Both includes are unnecessary and can be safely removed.
No functional change.

Signed-off-by: Yongtao Huang <[email protected]>

files:
M Objects/frameobject.c
M Python/instrumentation.c

diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index b652973600c17d..3c0b454503be66 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -17,7 +17,6 @@
 
 #include "frameobject.h"          // PyFrameLocalsProxyObject
 #include "opcode.h"               // EXTENDED_ARG
-#include "pycore_optimizer.h"
 
 #include "clinic/frameobject.c.h"
 
diff --git a/Python/instrumentation.c b/Python/instrumentation.c
index 9e750433cffa89..28bbe1d82a3b88 100644
--- a/Python/instrumentation.c
+++ b/Python/instrumentation.c
@@ -18,7 +18,6 @@
 #include "pycore_tuple.h"         // _PyTuple_FromArraySteal()
 
 #include "opcode_ids.h"
-#include "pycore_optimizer.h"
 
 
 /* Uncomment this to dump debugging output when assertions fail */

_______________________________________________
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