summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2024-12-02 01:38:17 (GMT)
committerGitHub <noreply@github.com>2024-12-02 01:38:17 (GMT)
commite2713409cff5b71b1176b0e3fa63dae447548672 (patch)
treed91c8e16052a44f78bbe075ad320fade4e907061 /Objects
parent7ea523f47cdb4cf512a1e2ae1f93f5d19a48945d (diff)
downloadcpython-e2713409cff5b71b1176b0e3fa63dae447548672.zip
cpython-e2713409cff5b71b1176b0e3fa63dae447548672.tar.gz
cpython-e2713409cff5b71b1176b0e3fa63dae447548672.tar.bz2
gh-115999: Add partial free-thread specialization for BINARY_SUBSCR (gh-127227)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/listobject.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index bb0040c..4b24f4a 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -391,6 +391,12 @@ PyList_GetItemRef(PyObject *op, Py_ssize_t i)
return item;
}
+PyObject *
+_PyList_GetItemRef(PyListObject *list, Py_ssize_t i)
+{
+ return list_get_item_ref(list, i);
+}
+
int
PyList_SetItem(PyObject *op, Py_ssize_t i,
PyObject *newitem)