Skip to content

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury 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
Contributor Author

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 colesbury force-pushed the gh-142218-dict-crash branch from b3bf939 to 40e6a1a Compare December 3, 2025 17:02
@colesbury
Copy link
Contributor Author

I've fixed the reference

Copy link
Member

@efimov-mikhail efimov-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

@colesbury colesbury merged commit 547d8da into python:main Dec 3, 2025
50 checks passed
@colesbury colesbury 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 <colesbury@gmail.com>
@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

bedevere-app bot commented Dec 3, 2025

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

@bedevere-app bedevere-app bot 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 <colesbury@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Dec 3, 2025

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

@bedevere-app bedevere-app bot 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 <colesbury@gmail.com>
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)
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.

4 participants