commit | b0d28b4c607709fdeb395b558cc7c87bad0869f0 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Tue Feb 05 12:10:29 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Tue Feb 05 12:10:29 2008 +0000 |
tree | 606fcb813dde180e74d929fef5ad10fe116b92ef | |
parent | 48b8b665d7a1adab46b70fc536569c16fc8092d3 [diff] [blame] |
Fix-up mapping equality tests to include both keys and values
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py index 9bcaae9..8090b84 100644 --- a/Lib/_abcoll.py +++ b/Lib/_abcoll.py
@@ -379,10 +379,10 @@ return ValuesView(self) def __eq__(self, other): - return set(self) == set(other) + return dict(self.items()) == dict(other.items()) def __ne__(self, other): - return set(self) != set(other) + return dict(self.items()) != dict(other.items()) class MappingView(metaclass=ABCMeta):