Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-106521: Remove _PyObject_LookupAttr() function #106642

Merged

Conversation

serhiy-storchaka
Copy link
Member

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

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

Copy link
Member

@vstinner vstinner left a comment

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