Skip to content

unexpected behavior implementing __hash__ and __eq__ for collection inclusion between set and list #4681

Discussion options

You must be logged in to vote

In your Rust hasher you use a different hasher than the one Python uses, so it makes sense that the hash values aren't the same. You'd have to forward to Python's hasher if you want this to work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@warriorstar-orion
Comment options

Answer selected by warriorstar-orion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants