Inline PyIter_Next() matching the other itertools code.

This commit is contained in:
Raymond Hettinger 2015-08-18 00:20:20 -07:00
parent a6ea44aed1
commit f109414094

View file

@ -1164,7 +1164,8 @@ map_next(mapobject *lz)
return NULL;
for (i=0 ; i<numargs ; i++) {
val = PyIter_Next(PyTuple_GET_ITEM(lz->iters, i));
PyObject *it = PyTuple_GET_ITEM(lz->iters, i);
val = Py_TYPE(it)->tp_iternext(it);
if (val == NULL) {
Py_DECREF(argtuple);
return NULL;