Skip to content

gh-111789: Simplify import.c by using PyDict_GetItemRef() - #111979

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:use-dict_getitemref-import
Nov 14, 2023
Merged

gh-111789: Simplify import.c by using PyDict_GetItemRef()#111979
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:use-dict_getitemref-import

Conversation

@serhiy-storchaka

@serhiy-storchakaserhiy-storchaka commented Nov 11, 2023

Copy link
Copy Markdown
Member

@vstinnervstinner 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. 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.

Comment threadPython/import.c Outdated
Co-authored-by: Victor Stinner <vstinner@python.org>
@serhiy-storchaka
serhiy-storchaka merged commit 9536562 into python:mainNov 14, 2023
@serhiy-storchaka
serhiy-storchaka deleted the use-dict_getitemref-import branch November 14, 2023 09:29
Glyphack pushed a commit to Glyphack/cpython that referenced this pull request Sep 2, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@serhiy-storchaka@vstinner