commit | 2504b7a06f6ad833f443b02e5ea26ced207ad0ae | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Apr 04 17:26:32 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Apr 04 17:26:32 2009 +0000 |
tree | 62c1eabd28857b3a277b96c2572e1d86462c4137 | |
parent | e099b37428ab72cf70c745e941b9767fcad8eaa3 [diff] [blame] |
must provide this method
diff --git a/Lib/collections.py b/Lib/collections.py index 0d35bfd..8fb123f 100644 --- a/Lib/collections.py +++ b/Lib/collections.py
@@ -132,6 +132,9 @@ all(p==q for p, q in zip(self.items(), other.items())) return dict.__eq__(self, other) + def __ne__(self, other): + return not self == other + ################################################################################