https://github.com/python/cpython/commit/1821f8f10c7a4a43a4fb55fe4e3da4cadfec699d
commit: 1821f8f10c7a4a43a4fb55fe4e3da4cadfec699d
branch: main
author: Xuanteng Huang <44627253+xuante...@users.noreply.github.com>
committer: Fidget-Spinner <kenjin4...@gmail.com>
date: 2025-03-15T23:38:46+08:00
summary:

gh-131281: fix compile error due to `BINARY_SUBSCR` (GH-131283)

* fix compile error due to `BINARY_SUBSCR`

* replace stat_inc with `BINARY_OP`

files:
M Python/bytecodes.c
M Python/executor_cases.c.h
M Python/generated_cases.c.h

diff --git a/Python/bytecodes.c b/Python/bytecodes.c
index aaa25161d0943f..7af4d642edb919 100644
--- a/Python/bytecodes.c
+++ b/Python/bytecodes.c
@@ -878,7 +878,7 @@ dummy_func(
             assert(res_o != NULL);
             res = PyStackRef_FromPyObjectNew(res_o);
 #endif
-            STAT_INC(BINARY_SUBSCR, hit);
+            STAT_INC(BINARY_OP, hit);
             DECREF_INPUTS();
         }
 
diff --git a/Python/executor_cases.c.h b/Python/executor_cases.c.h
index fb5b2240436f1c..ff9f33b6db0187 100644
--- a/Python/executor_cases.c.h
+++ b/Python/executor_cases.c.h
@@ -1253,7 +1253,7 @@
             assert(res_o != NULL);
             res = PyStackRef_FromPyObjectNew(res_o);
             #endif
-            STAT_INC(BINARY_SUBSCR, hit);
+            STAT_INC(BINARY_OP, hit);
             _PyFrame_SetStackPointer(frame, stack_pointer);
             _PyStackRef tmp = list_st;
             list_st = res;
diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h
index 8cdbaf1a4d5761..558b0b48ceaa71 100644
--- a/Python/generated_cases.c.h
+++ b/Python/generated_cases.c.h
@@ -702,7 +702,7 @@
             assert(res_o != NULL);
             res = PyStackRef_FromPyObjectNew(res_o);
             #endif
-            STAT_INC(BINARY_SUBSCR, hit);
+            STAT_INC(BINARY_OP, hit);
             _PyFrame_SetStackPointer(frame, stack_pointer);
             _PyStackRef tmp = list_st;
             list_st = res;

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to