summaryrefslogtreecommitdiffstats
path: root/Modules/itertoolsmodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <rhettinger@users.noreply.github.com>2022-10-21 23:44:49 (GMT)
committerGitHub <noreply@github.com>2022-10-21 23:44:49 (GMT)
commit8d574234d49acf3472f7151ee4296da0f297d6f2 (patch)
treeeb2070a8ef592b2ed6467a9d830782411286dc0e /Modules/itertoolsmodule.c
parentd9407b174c81fda33e6c09a6f988c9a7cb8368af (diff)
downloadcpython-8d574234d49acf3472f7151ee4296da0f297d6f2.zip
cpython-8d574234d49acf3472f7151ee4296da0f297d6f2.tar.gz
cpython-8d574234d49acf3472f7151ee4296da0f297d6f2.tar.bz2
GH-98363: Use better accessor macro (#98535)
Diffstat (limited to 'Modules/itertoolsmodule.c')
-rw-r--r--Modules/itertoolsmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 627e698..578c2d9 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -155,7 +155,7 @@ batched_next(batchedobject *bo)
return NULL;
}
iternextfunc iternext = *Py_TYPE(it)->tp_iternext;
- PyObject **items = PySequence_Fast_ITEMS(result);
+ PyObject **items = _PyList_ITEMS(result);
for (i=0 ; i < n ; i++) {
item = iternext(it);
if (item == NULL) {