Skip to content

gh-106521: Remove _PyObject_LookupAttr() function#106642

Merged
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:rename-_PyObject_LookupAttr
Jul 12, 2023
Merged

gh-106521: Remove _PyObject_LookupAttr() function#106642
serhiy-storchaka merged 1 commit into
python:mainfrom
serhiy-storchaka:rename-_PyObject_LookupAttr

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Jul 11, 2023

Copy link
Copy Markdown
Member

It is an automatic replace in C files and Parser/asdl_c.py.

@vstinner vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@serhiy-storchaka serhiy-storchaka changed the title gh-106521: Replace _PyObject_LookupAttr with PyObject_GetOptionalAttr in code gh-106521: Remove _PyObject_LookupAttr() function Jul 12, 2023
@serhiy-storchaka serhiy-storchaka merged commit be1b968 into python:main Jul 12, 2023
@serhiy-storchaka serhiy-storchaka deleted the rename-_PyObject_LookupAttr branch July 12, 2023 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants