Skip to content

Conversation

@colesbury
Copy link
Contributor

@colesburycolesbury commented Dec 3, 2025

This fixes a regression introduced in gh-140558. The interpreter would crash if we inserted a non str key into a split table that matches an existing key.

@pablogsal
Copy link
Member

This fixes a regression introduced in gh-140588. The interpreter would crash if we inserted a non str key into a split table that matches an existing key.

It's gh-140588 the correct reference?

@colesbury
Copy link
ContributorAuthor

Oops, no, it’s the wrong reference

This fixes a regression introduced in pythongh-140558. The interpreter would crash if we inserted a non `str` key into a split table that matches an existing key.
@colesbury
Copy link
ContributorAuthor

I've fixed the reference

Copy link
Member

@efimov-mikhailefimov-mikhail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@colesburycolesbury merged commit 547d8da into python:mainDec 3, 2025
50 checks passed
@colesburycolesbury deleted the gh-142218-dict-crash branch December 3, 2025 23:37
@miss-islington-app
Copy link

Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Dec 3, 2025
This fixes a regression introduced in pythongh-140558. The interpreter would crash if we inserted a non `str` key into a split table that matches an existing key. (cherry picked from commit 547d8da) Co-authored-by: Sam Gross <[email protected]>
@miss-islington-app
Copy link

Sorry, @colesbury, I could not cleanly backport this to 3.13 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 547d8daf780646e2800bec598ed32085817c8606 3.13 

@bedevere-app
Copy link

GH-142244 is a backport of this pull request to the 3.14 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.14 bugs and security fixes label Dec 3, 2025
colesbury added a commit to colesbury/cpython that referenced this pull request Dec 3, 2025
…2229) This fixes a regression introduced in pythongh-140558. The interpreter would crash if we inserted a non `str` key into a split table that matches an existing key. (cherry picked from commit 547d8da) Co-authored-by: Sam Gross <[email protected]>
@bedevere-app
Copy link

GH-142245 is a backport of this pull request to the 3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13 bugs and security fixes label Dec 3, 2025
colesbury added a commit that referenced this pull request Dec 4, 2025
…2244) This fixes a regression introduced in gh-140558. The interpreter would crash if we inserted a non `str` key into a split table that matches an existing key. (cherry picked from commit 547d8da) Co-authored-by: Sam Gross <[email protected]>
colesbury added a commit that referenced this pull request Dec 4, 2025
…2245) This fixes a regression introduced in gh-140558. The interpreter would crash if we inserted a non `str` key into a split table that matches an existing key. (cherry picked from commit 547d8da)
StanFromIreland pushed a commit to StanFromIreland/cpython that referenced this pull request Dec 6, 2025
This fixes a regression introduced in pythongh-140558. The interpreter would crash if we inserted a non `str` key into a split table that matches an existing key.
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.

4 participants

@colesbury@pablogsal@methane@efimov-mikhail