Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f109414

Browse files
committed
Inline PyIter_Next() matching the other itertools code.
1 parent a6ea44a commit f109414

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/bltinmodule.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,8 @@ map_next(mapobject *lz)
11641164
return NULL;
11651165

11661166
for (i=0 ; i<numargs ; i++) {
1167-
val = PyIter_Next(PyTuple_GET_ITEM(lz->iters, i));
1167+
PyObject *it = PyTuple_GET_ITEM(lz->iters, i);
1168+
val = Py_TYPE(it)->tp_iternext(it);
11681169
if (val == NULL) {
11691170
Py_DECREF(argtuple);
11701171
return NULL;

0 commit comments

Comments
 (0)