Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
andrewloux wants to merge 1 commit into
python:mainpython/cpython:mainfrom
andrewloux:pytuple-codeobject-constantkeyandrewloux/cpython:pytuple-codeobject-constantkeyCopy head branch name to clipboard
Closed

gh-140009: Replace PyTuple_Pack with PyTuple_FromArray in _PyCode_ConstantKey#144773
andrewloux wants to merge 1 commit into
python:mainpython/cpython:mainfrom
andrewloux:pytuple-codeobject-constantkeyandrewloux/cpython:pytuple-codeobject-constantkeyCopy head branch name to clipboard

Conversation

@andrewloux

@andrewloux andrewloux 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-bot Bot commented Feb 13, 2026

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app

bedevere-app Bot commented Feb 13, 2026

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 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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.