diff options
author | Raymond Hettinger <python@rcn.com> | 2015-08-18 07:20:20 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-08-18 07:20:20 (GMT) |
commit | f1094140944721ca852d49fb30e107d4ffec6f12 (patch) | |
tree | 7e87acac897d44d25b3094c2f98a290d61cb90b7 /Python | |
parent | a6ea44aed146d571a7236f2089255625c3c83693 (diff) | |
download | cpython-f1094140944721ca852d49fb30e107d4ffec6f12.zip cpython-f1094140944721ca852d49fb30e107d4ffec6f12.tar.gz cpython-f1094140944721ca852d49fb30e107d4ffec6f12.tar.bz2 |
Inline PyIter_Next() matching the other itertools code.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 2f22209..78ec3cb 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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; |