]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-98363: Use better accessor macro (#98535)
authorRaymond Hettinger <rhettinger@users.noreply.github.com>
Fri, 21 Oct 2022 23:44:49 +0000 (18:44 -0500)
committerGitHub <noreply@github.com>
Fri, 21 Oct 2022 23:44:49 +0000 (18:44 -0500)
Modules/itertoolsmodule.c

index 627e698fc6b9d8abdf729c5b31aaad0b09eb30ec..578c2d942885486e721b270bbb82a6fb887d1001 100644 (file)
@@ -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) {