summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2025-02-07 22:39:54 (GMT)
committerGitHub <noreply@github.com>2025-02-07 22:39:54 (GMT)
commita1417b211f0bb9582b00f7b82d0a43a3bcc9ed05 (patch)
tree1133960d5abf1077cbf974bcde2ecb90b9fc1b7c /Python/ceval.c
parent2248a9c153092b920ff68b0eee009c04dbe19f61 (diff)
downloadcpython-a1417b211f0bb9582b00f7b82d0a43a3bcc9ed05.zip
cpython-a1417b211f0bb9582b00f7b82d0a43a3bcc9ed05.tar.gz
cpython-a1417b211f0bb9582b00f7b82d0a43a3bcc9ed05.tar.bz2
gh-100239: replace BINARY_SUBSCR & family by BINARY_OP with oparg NB_SUBSCR (#129700)
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 6c8e39a..1e4f1f3 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -362,6 +362,7 @@ const binaryfunc _PyEval_BinaryOps[] = {
[NB_INPLACE_SUBTRACT] = PyNumber_InPlaceSubtract,
[NB_INPLACE_TRUE_DIVIDE] = PyNumber_InPlaceTrueDivide,
[NB_INPLACE_XOR] = PyNumber_InPlaceXor,
+ [NB_SUBSCR] = PyObject_GetItem,
};
const conversion_func _PyEval_ConversionFuncs[4] = {