[Python-checkins] cpython: Inline PyIter_Next() matching the other itertools code.
raymond.hettinger
python-checkins at python.org
Tue Aug 18 09:20:30 CEST 2015
https://hg.python.org/cpython/rev/4fb847bc3de8
changeset: 97433:4fb847bc3de8
user: Raymond Hettinger <python at rcn.com>
date: Tue Aug 18 00:20:20 2015 -0700
summary:
Inline PyIter_Next() matching the other itertools code.
files:
Python/bltinmodule.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1164,7 +1164,8 @@
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;
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list