Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Closed
Description
Feature or enhancement
Just addedPy_HashPointer()
function can be used to implement the default Python object hashing function (object.__hash__()
), but only in CPython. In other Python implementations the default object hash can depend not on the object address, but on its identity.
I think that we need a new function,PyObject_GenericHash()
(similar toPyObject_GenericGetAttr()
etc), that does not depend on CPython implementation details.