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
|
@ -3018,13 +3018,13 @@ static PyObject *
|
|||
bytearrayiter_reduce(bytesiterobject *it)
|
||||
{
|
||||
if (it->it_seq != NULL) {
|
||||
return Py_BuildValue("N(O)n", _PyIter_GetBuiltin("iter"),
|
||||
return Py_BuildValue("N(O)n", _PyObject_GetBuiltin("iter"),
|
||||
it->it_seq, it->it_index);
|
||||
} else {
|
||||
PyObject *u = PyUnicode_FromUnicode(NULL, 0);
|
||||
if (u == NULL)
|
||||
return NULL;
|
||||
return Py_BuildValue("N(N)", _PyIter_GetBuiltin("iter"), u);
|
||||
return Py_BuildValue("N(N)", _PyObject_GetBuiltin("iter"), u);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue