[issue45080] functools._HashedSeq implements __hash__ but not __eq__

2021-09-02 Thread Leopold Talirz
Leopold Talirz added the comment: Thanks a lot for the clarification, I get it now (I think). > 2. _HashedSeq is only used as a key in a dictionary. When you look up a key > in dictionary, it compares hashes first. __eq__ is only called when hashes > match. I was looking at th

[issue45080] functools._HashedSeq implements __hash__ but not __eq__

2021-09-01 Thread Leopold Talirz
New submission from Leopold Talirz : Disclaimer: this is my first issue on the python bug tracker. Please feel free to close this issue and redirect this to a specific mailing list, if more appropriate. The implementation of `functools._HashedSeq` [1] does not include an implementation