summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-08-18 07:20:20 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-08-18 07:20:20 (GMT)
commitf1094140944721ca852d49fb30e107d4ffec6f12 (patch)
tree7e87acac897d44d25b3094c2f98a290d61cb90b7 /Python/bltinmodule.c
parenta6ea44aed146d571a7236f2089255625c3c83693 (diff)
downloadcpython-f1094140944721ca852d49fb30e107d4ffec6f12.zip
cpython-f1094140944721ca852d49fb30e107d4ffec6f12.tar.gz
cpython-f1094140944721ca852d49fb30e107d4ffec6f12.tar.bz2
Inline PyIter_Next() matching the other itertools code.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c3
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;