Skip to content

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

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

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

Conversation

@andrewloux

@andrewlouxandrewloux commented Feb 13, 2026

Copy link
Copy Markdown

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

python-cla-botBot commented Feb 13, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

Copy link
Copy Markdown

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 deleted the pytuple-codeobject-constantkey branch February 13, 2026 03:01
@markshannonmarkshannon mentioned this pull request Feb 26, 2026
Sign up for freeto 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

@andrewloux