mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Add a separate NEWS entry for a change to PyObject_CallMethod in the PEP 380 patch, and make the private CallMethod variants consistent with the public one
This commit is contained in:
parent
76e1bb0ef9
commit
138f4656e3
2 changed files with 3 additions and 2 deletions
|
@ -2288,7 +2288,6 @@ _PyObject_CallMethodId(PyObject *o, _Py_Identifier *name, char *format, ...)
|
|||
|
||||
func = _PyObject_GetAttrId(o, name);
|
||||
if (func == NULL) {
|
||||
PyErr_SetString(PyExc_AttributeError, name->string);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -2330,7 +2329,6 @@ _PyObject_CallMethodId_SizeT(PyObject *o, _Py_Identifier *name, char *format, ..
|
|||
|
||||
func = _PyObject_GetAttrId(o, name);
|
||||
if (func == NULL) {
|
||||
PyErr_SetString(PyExc_AttributeError, name->string);
|
||||
return NULL;
|
||||
}
|
||||
va_start(va, format);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue