mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
bpo-37337: Add _PyObject_CallMethodNoArgs() (GH-14267)
This commit is contained in:
parent
38f44b4a4a
commit
762f93ff2e
37 changed files with 154 additions and 132 deletions
|
@ -4425,7 +4425,7 @@ _PyObject_GetItemsIter(PyObject *obj, PyObject **listitems,
|
|||
PyObject *items;
|
||||
_Py_IDENTIFIER(items);
|
||||
|
||||
items = _PyObject_CallMethodIdObjArgs(obj, &PyId_items, NULL);
|
||||
items = _PyObject_CallMethodIdNoArgs(obj, &PyId_items);
|
||||
if (items == NULL) {
|
||||
Py_CLEAR(*listitems);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue