Author Kristian Klette
Recipients Kristian Klette
Date 2019-07-13.11:58:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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()

Date User Action Args
2019-07-13 11:58:48Kristian Klettesetrecipients: + Kristian Klette
2019-07-13 11:58:48Kristian Klettesetmessageid: <>
2019-07-13 11:58:48Kristian Klettelinkissue37585 messages
2019-07-13 11:58:48Kristian Klettecreate