Skip to content

gh-161226: Copy the tuple in _PyTuple_Resize() if the hash is cached - #161227

Closed
vstinner wants to merge 1 commit into
python:mainfrom
vstinner:tuple_resize
Closed

vstinner wants to merge 1 commit into
python:mainfrom
vstinner:tuple_resize

Conversation

@vstinner

@vstinner vstinner commented Nov 3, 2026 •

Copy link
Copy Markdown
Member
  • Add tuple_resize_inplace() helper function.
  • Add compute_hash optional parameter to _testcapi._tuple_resize().

…ached

* Add tuple_resize_inplace() helper function.
* Add compute_hash optional parameter to _testcapi._tuple_resize().
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35598685 | 📁 Comparing 7e12faa against main (3945eaf)

  🔍 Preview build  

2 files changed
± c-api/tuple.html
± whatsnew/changelog.html

@vstinner

vstinner commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

I just merged #161293 instead.

@vstinner vstinner closed this Nov 5, 2026
@vstinner
vstinner deleted the tuple_resize branch November 5, 2026 13:29
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.

1 participant