Skip to content

Commit

Permalink
GH-98363: Use better accessor macro (#98535)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhettinger authored Oct 21, 2022
1 parent d9407b1 commit 8d57423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/itertoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 8d57423

Please sign in to comment.