mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Rename _PyIter_GetBuiltin to _PyObject_GetBuiltin, and do not include it in the stable ABI.
This commit is contained in:
parent
d4dc6dc9e7
commit
a701388de1
13 changed files with 38 additions and 35 deletions
|
|
@ -985,7 +985,7 @@ rangeiter_reduce(rangeiterobject *r)
|
|||
if (range == NULL)
|
||||
goto err;
|
||||
/* return the result */
|
||||
return Py_BuildValue("N(N)i", _PyIter_GetBuiltin("iter"), range, r->index);
|
||||
return Py_BuildValue("N(N)i", _PyObject_GetBuiltin("iter"), range, r->index);
|
||||
err:
|
||||
Py_XDECREF(start);
|
||||
Py_XDECREF(stop);
|
||||
|
|
@ -1171,7 +1171,7 @@ longrangeiter_reduce(longrangeiterobject *r)
|
|||
}
|
||||
|
||||
/* return the result */
|
||||
return Py_BuildValue("N(N)O", _PyIter_GetBuiltin("iter"), range, r->index);
|
||||
return Py_BuildValue("N(N)O", _PyObject_GetBuiltin("iter"), range, r->index);
|
||||
}
|
||||
|
||||
static PyObject *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue