mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-113024: C API: Add PyObject_GenericHash() function (GH-113025)
This commit is contained in:
parent
567ab3bd15
commit
e2e0b4b4b9
14 changed files with 51 additions and 13 deletions
|
@ -320,7 +320,7 @@ static Py_hash_t
|
|||
meth_hash(PyCFunctionObject *a)
|
||||
{
|
||||
Py_hash_t x, y;
|
||||
x = _Py_HashPointer(a->m_self);
|
||||
x = PyObject_GenericHash(a->m_self);
|
||||
y = _Py_HashPointer((void*)(a->m_ml->ml_meth));
|
||||
x ^= y;
|
||||
if (x == -1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue