FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-108308: Use PyDict_GetItemRef() in moduleobject.c by vstinner · Pull Request #108381 · python/cpython · GitHub

/ cpython Public

gh-108308: Use PyDict_GetItemRef() in moduleobject.c - #108381

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:mod_getitemref
Aug 23, 2023
Merged

gh-108308: Use PyDict_GetItemRef() in moduleobject.c#108381
vstinner merged 1 commit into
python:mainfrom
vstinner:mod_getitemref

Conversation

vstinner commented Aug 23, 2023
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Replace PyDict_GetItemWithError() with PyDict_GetItemRef() which returns a strong reference.

Cleanup also the function: move variable definition to their first assignation, rename variable names to use name longer than 1 character.

Replace PyDict_GetItemWithError() with PyDict_GetItemRef() which
returns a strong reference.

Cleanup also the function: move variable definition to their first
assignation, rename variable names to use name longer than 1
character.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL