mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Inline PyIter_Next() matching the other itertools code.
This commit is contained in:
parent
a6ea44aed1
commit
f109414094
1 changed files with 2 additions and 1 deletions
|
@ -1164,7 +1164,8 @@ map_next(mapobject *lz)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
for (i=0 ; i<numargs ; i++) {
|
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) {
|
if (val == NULL) {
|
||||||
Py_DECREF(argtuple);
|
Py_DECREF(argtuple);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue