Skip to content

Commit 8d57423

Browse files
authored
GH-98363: Use better accessor macro (#98535)
1 parent d9407b1 commit 8d57423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/itertoolsmodule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ batched_next(batchedobject *bo)
155155
return NULL;
156156
}
157157
iternextfunc iternext = *Py_TYPE(it)->tp_iternext;
158-
PyObject **items = PySequence_Fast_ITEMS(result);
158+
PyObject **items = _PyList_ITEMS(result);
159159
for (i=0 ; i < n ; i++) {
160160
item = iternext(it);
161161
if (item == NULL) {

0 commit comments

Comments
 (0)