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-111789: Simplify import.c by using PyDict_GetItemRef() #111979

Merged

Conversation

serhiy-storchaka
Copy link
Member

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

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. I just proposed a minor suggestion :-)

resolve_name() changes are non-trivial, but code handling (X)DECREF is at the end, so it's not too hard to review.

Python/import.c Outdated Show resolved Hide resolved
Co-authored-by: Victor Stinner <[email protected]>
@serhiy-storchaka serhiy-storchaka merged commit 9536562 into python:main Nov 14, 2023
28 checks passed
@serhiy-storchaka serhiy-storchaka deleted the use-dict_getitemref-import branch November 14, 2023 09:29
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.

2 participants