Skip to content

[3.15] gh-157892: Fix error check on _Py_hashtable_set() in intern_static() (GH-157898) - #158301

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-a4eb936-3.15
Open

miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-a4eb936-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

_Py_hashtable_set() returns -1 on failure, so the "< -1" check could never be true and the Py_FatalError() call was unreachable.
(cherry picked from commit a4eb936)

Co-authored-by: Rishi Raj 180109771+rishiraj38@users.noreply.github.com

…tic() (pythonGH-157898)

_Py_hashtable_set() returns -1 on failure, so the "< -1" check could never be true and the Py_FatalError() call was unreachable.
(cherry picked from commit a4eb936)

Co-authored-by: Rishi Raj <180109771+rishiraj38@users.noreply.github.com>
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.

2 participants