]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-137759: Replace _PyObject_HashFast() with PyObject_Hash() in setobject.c (#137828)
authorJasonMendoza2008 <56092290+JasonMendoza2008@users.noreply.github.com>
Mon, 15 Jun 2026 09:31:04 +0000 (11:31 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Jun 2026 09:31:04 +0000 (11:31 +0200)
commitecbd31ee390634a2d420b975c9acef747e10d00a
treef92660252b11a4a99d0577beba79655d3593e28b
parent7a70afa199a9bdd5bf65b2b396b9fa76c8842ac2
gh-137759: Replace _PyObject_HashFast() with PyObject_Hash() in setobject.c (#137828)

Replace also _PyObject_HashFast() with PyObject_Hash()
in _collections._count_elements().

Rename _PyObject_HashFast() to _PyObject_HashDictKey(),
and mark it as Py_ALWAYS_INLINE.

Only use _PyObject_HashDictKey() on dictionaries.
Include/internal/pycore_object.h
Modules/_collectionsmodule.c
Objects/dictobject.c
Objects/setobject.c
Objects/typeobject.c