gh-113024: C API: Add PyObject_GenericHash() function (GH-113025)

This commit is contained in:
Serhiy Storchaka 2024-03-22 20:19:10 +02:00 committed by GitHub
parent 567ab3bd15
commit e2e0b4b4b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 51 additions and 13 deletions

View file

@ -301,7 +301,7 @@ static Py_hash_t
method_hash(PyMethodObject *a)
{
Py_hash_t x, y;
x = _Py_HashPointer(a->im_self);
x = PyObject_GenericHash(a->im_self);
y = PyObject_Hash(a->im_func);
if (y == -1)
return -1;