Skip to content

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

Merged
eendebakpt merged 2 commits into
python:3.14from
miss-islington:backport-a4eb936-3.14
Sep 29, 2026
Merged

eendebakpt merged 2 commits into
python:3.14from
miss-islington:backport-a4eb936-3.14

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>
@eendebakpt
eendebakpt enabled auto-merge (squash) September 29, 2026 21:52
@eendebakpt
eendebakpt merged commit 72c85c6 into python:3.14 Sep 29, 2026
46 checks passed
@miss-islington
miss-islington deleted the backport-a4eb936-3.14 branch September 29, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants