mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
gh-106521: Remove _PyObject_LookupAttr() function (GH-106642)
This commit is contained in:
parent
e8ab0096a5
commit
be1b968dc1
45 changed files with 351 additions and 352 deletions
|
@ -2268,7 +2268,7 @@ array_array___reduce_ex___impl(arrayobject *self, PyTypeObject *cls,
|
|||
if (protocol == -1 && PyErr_Occurred())
|
||||
return NULL;
|
||||
|
||||
if (_PyObject_LookupAttr((PyObject *)self, state->str___dict__, &dict) < 0) {
|
||||
if (PyObject_GetOptionalAttr((PyObject *)self, state->str___dict__, &dict) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
if (dict == NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue