gh-106521: Remove _PyObject_LookupAttr() function by serhiy-storchaka · Pull Request #106642 · python/cpython

LGTM.

You may change the change title to "Remove _PyObject_LookupAttr() function". In practice (in terms of C API), this change removes the function, since the previous change added a new function. I'm fine with removing private functions, but it seems like @encukou started to have concerns about such removals in Python 3.13 C API: see #106320