Skip to content

gh-140009: Replace PyTuple_Pack with PyTuple_FromArray in _PyCode_ConstantKey#144773

Closed
andrewloux wants to merge 1 commit intopython:mainfrom
andrewloux:pytuple-codeobject-constantkey
Closed

gh-140009: Replace PyTuple_Pack with PyTuple_FromArray in _PyCode_ConstantKey#144773
andrewloux wants to merge 1 commit intopython:mainfrom
andrewloux:pytuple-codeobject-constantkey

Conversation

@andrewloux
Copy link

@andrewloux andrewloux commented Feb 13, 2026

This PR replaces PyTuple_Pack calls with PyTuple_FromArray() in Objects/codeobject.c (_PyCode_ConstantKey).

Benchmark evidence will be added in a follow-up comment.

Part of #140009.

@python-cla-bot
Copy link

python-cla-bot bot commented Feb 13, 2026

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link

bedevere-app bot commented Feb 13, 2026

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.

@andrewloux andrewloux closed this Feb 13, 2026
@andrewloux andrewloux deleted the pytuple-codeobject-constantkey branch February 13, 2026 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant