You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the hash is not the same even for objects that are the same (like in Python)
I think this needs qualifying, it seems like the override of the __hash__ method does not work as expected from the CPython interpreter, it does however work fine from compiled code, e.g.:
I think that this works because the compiled call to hash() forces resolution of the method on the compiled class whereas calling hash() on the jitclass instance object does not.
@sklam any thoughts on whether we ought to support this?
Reporting a bug
This is my code
It appears that:
__hash__
doesn't workIs there a way to get a value-dependent hashing?
Or is there a way to subclass namedtuples and still compile?
The text was updated successfully, but these errors were encountered: