summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-04-04 17:26:32 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-04-04 17:26:32 (GMT)
commit2504b7a06f6ad833f443b02e5ea26ced207ad0ae (patch)
tree62c1eabd28857b3a277b96c2572e1d86462c4137 /Lib
parente099b37428ab72cf70c745e941b9767fcad8eaa3 (diff)
downloadcpython-2504b7a06f6ad833f443b02e5ea26ced207ad0ae.zip
cpython-2504b7a06f6ad833f443b02e5ea26ced207ad0ae.tar.gz
cpython-2504b7a06f6ad833f443b02e5ea26ced207ad0ae.tar.bz2
must provide this method
Diffstat (limited to 'Lib')
-rw-r--r--Lib/collections.py3
1 files changed, 3 insertions, 0 deletions
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 @@ class OrderedDict(dict, MutableMapping):
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
+
################################################################################