mirror of
https://github.com/python/cpython
synced 2026-09-29 09:05:29 +03: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
|
|
@ -3974,7 +3974,7 @@ _build_result(PyObject *result, PyObject *callargs,
|
|||
_Py_IDENTIFIER(__ctypes_from_outparam__);
|
||||
|
||||
v = PyTuple_GET_ITEM(callargs, i);
|
||||
v = _PyObject_CallMethodId(v, &PyId___ctypes_from_outparam__, NULL);
|
||||
v = _PyObject_CallMethodIdNoArgs(v, &PyId___ctypes_from_outparam__);
|
||||
if (v == NULL || numretvals == 1) {
|
||||
Py_DECREF(callargs);
|
||||
return v;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue