Author Kristian Klette
Recipients Kristian Klette
Date 2019-07-13.11:58:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563019128.62.0.639495498673.issue37585@roundup.psfhosted.org>
In-reply-to
Content
As a user, I expect to be able to compare the different parts a `dict`
in the same manner.

Currently, `PyDictValues` does not implement the `dictview_richcompare`, causing the `__eq__` to always return false, even if the values are identical.


```
my_dict = {'foo': 'bar'}
dict_copy = my_dict.copy()
other_dict = {'foo': 'bar', 'bar': 1234}

assert my_dict.keys() == my_dict.keys()
assert my_dict.keys() == dict_copy.keys()
assert my_dict.keys() != other_dict.keys()

assert my_dict.items() == my_dict.items()
assert my_dict.items() == dict_copy.items()
assert my_dict.items() != other_dict.items()

assert my_dict.values() == my_dict.values()
assert my_dict.values() == dict_copy.values()
assert my_dict.values() != other_dict.values()

```
History
Date User Action Args
2019-07-13 11:58:48Kristian Klettesetrecipients: + Kristian Klette
2019-07-13 11:58:48Kristian Klettesetmessageid: <1563019128.62.0.639495498673.issue37585@roundup.psfhosted.org>
2019-07-13 11:58:48Kristian Klettelinkissue37585 messages
2019-07-13 11:58:48Kristian Klettecreate