Skip to content

Remove redundant incref of immortal object Py_EMPTY_KEYS #133200

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

Merged
merged 3 commits into from
Apr 30, 2025

Conversation

biglizards
Copy link
Contributor

Py_EMPTY_KEYS is immortal, so dictkeys_incref will always return without doing anything. The file used to contain two instances of dictkeys_incref(Py_EMPTY_KEYS); one was removed in this PR.

I understand this to be a trivial change, and as such haven't made an issue for it. The blurb tool asks for an issue number, implying that trivial changes don't require a news entry. Please correct me if that's not the case.

@python-cla-bot
Copy link

python-cla-bot bot commented Apr 30, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Apr 30, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

@methane methane merged commit 0119791 into python:main Apr 30, 2025
41 checks passed
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.

3 participants