Skip to content

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

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

Yhg1s merged 2 commits into
python:3.13from
miss-islington:backport-a4eb936-3.13

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>
@Yhg1s
Yhg1s enabled auto-merge (squash) September 29, 2026 21:38
@Yhg1s
Yhg1s merged commit 036d2d6 into python:3.13 Sep 29, 2026
40 checks passed
@miss-islington
miss-islington deleted the backport-a4eb936-3.13 branch September 29, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants