In NumPy we use _Py_HashDouble for our floating point hashing needs and that seems like a pretty good candiate for the unstable API to me: #91744 (comment) and #101101 (comment).
However, the function is currently removed rather than made unstable (to my understanding). While it should probably be easy enough to vendor what we needed, I would prefer the unstable API tier, it gives a better sense of having the required identical hashing.
In NumPy we use _Py_HashDouble for our floating point hashing needs and that seems like a pretty good candiate for the unstable API to me: #91744 (comment) and #101101 (comment).
I would prefer a public API rather than a private API. I don't expect Py_HashDouble() API to be unstable.
Activity
encukou commented on Nov 2, 2023
cc @vstinner, per the What's New
vstinner commented on Nov 2, 2023
I would prefer a public API rather than a private API. I don't expect Py_HashDouble() API to be unstable.
See also issue #111389.
Thanks. I'm trying to keep track of these issues under #111481 meta issue.
pythongh-111545: Add Include/cpython/pyhash.h header file
pythongh-111545: Add Include/cpython/pyhash.h header file
gh-111545: Add Include/cpython/pyhash.h header file (#112063)
pythongh-111545: Add Py_HashDouble() function
pythongh-111545: Add PyHash_Double() function
pythongh-111545: Add PyHash_Double() function
pythongh-111545: Add PyHash_Double() function
pythongh-111545: Add PyHash_Pointer() function
pythongh-111545: Add PyHash_Pointer() function
pythongh-111545: Test PyHash_GetFuncDef() function
gh-111545: Test PyHash_GetFuncDef() function (#112098)
27 remaining items
pythongh-111545: Add Py_HashPointer() function
gh-111545: Add Py_HashPointer() function (#112096)
pythongh-111545: Add Py_HashDouble() function
pythongh-111545: Add Py_HashDouble() function
pythongh-111545: Add Py_HashDouble() function
pythongh-111545: Add Include/cpython/pyhash.h header file (python#112063
pythongh-111545: Test PyHash_GetFuncDef() function (python#112098)
pythongh-111545: Mention PEP 456 in PyHash_GetFuncDef() doc (python#1…
pythongh-111545: Add Py_HashPointer() function (python#112096)
vstinner commented on May 19, 2024
It was decided to not add a public API for now: capi-workgroup/decisions#2 (comment)
pythongh-111545: Add Include/cpython/pyhash.h header file (python#112063
pythongh-111545: Test PyHash_GetFuncDef() function (python#112098)
pythongh-111545: Mention PEP 456 in PyHash_GetFuncDef() doc (python#1…
pythongh-111545: Add Py_HashPointer() function (python#112096)