Commit 138f4656 authored by Nick Coghlan's avatar Nick Coghlan

Add a separate NEWS entry for a change to PyObject_CallMethod in the PEP 380...

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
parent 76e1bb0e
......@@ -2449,6 +2449,9 @@ Library
C-API
-----
- PyObject_CallMethod now passes along any underlying AttributeError from
PyObject_GetAttr, instead of replacing it with something less informative
- Issue #10913: Deprecate misleading functions PyEval_AcquireLock() and
PyEval_ReleaseLock(). The thread-state aware APIs should be used instead.
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment