diff options
author | Raymond Hettinger <rhettinger@users.noreply.github.com> | 2022-10-21 23:44:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 23:44:49 (GMT) |
commit | 8d574234d49acf3472f7151ee4296da0f297d6f2 (patch) | |
tree | eb2070a8ef592b2ed6467a9d830782411286dc0e /Modules/itertoolsmodule.c | |
parent | d9407b174c81fda33e6c09a6f988c9a7cb8368af (diff) | |
download | cpython-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.c | 2 |
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) { |