Skip to content

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

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-a4eb936-3.15
Oct 10, 2026
Merged

serhiy-storchaka merged 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>
@serhiy-storchaka
serhiy-storchaka merged commit 7c328b6 into python:3.15 Oct 10, 2026
55 checks passed
@miss-islington
miss-islington deleted the backport-a4eb936-3.15 branch October 10, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants