mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
|
@ -2949,17 +2949,17 @@ listiter_reduce_general(void *_it, int forward)
|
|||
if (forward) {
|
||||
listiterobject *it = (listiterobject *)_it;
|
||||
if (it->it_seq)
|
||||
return Py_BuildValue("N(O)l", _PyIter_GetBuiltin("iter"),
|
||||
return Py_BuildValue("N(O)l", _PyObject_GetBuiltin("iter"),
|
||||
it->it_seq, it->it_index);
|
||||
} else {
|
||||
listreviterobject *it = (listreviterobject *)_it;
|
||||
if (it->it_seq)
|
||||
return Py_BuildValue("N(O)n", _PyIter_GetBuiltin("reversed"),
|
||||
return Py_BuildValue("N(O)n", _PyObject_GetBuiltin("reversed"),
|
||||
it->it_seq, it->it_index);
|
||||
}
|
||||
/* empty iterator, create an empty list */
|
||||
list = PyList_New(0);
|
||||
if (list == NULL)
|
||||
return NULL;
|
||||
return Py_BuildValue("N(N)", _PyIter_GetBuiltin("iter"), list);
|
||||
return Py_BuildValue("N(N)", _PyObject_GetBuiltin("iter"), list);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue