From 8d574234d49acf3472f7151ee4296da0f297d6f2 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Fri, 21 Oct 2022 18:44:49 -0500 Subject: [PATCH] GH-98363: Use better accessor macro (#98535) --- Modules/itertoolsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 627e698fc6b9d8..578c2d94288548 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) {