]> granicus.if.org Git - python/commitdiff
must provide this method
authorBenjamin Peterson <benjamin@python.org>
Sat, 4 Apr 2009 17:26:32 +0000 (17:26 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 4 Apr 2009 17:26:32 +0000 (17:26 +0000)
Lib/collections.py

index 0d35bfd0c51dedf4da9eda303b6e7f329d5f4d72..8fb123fbc107be81a9d03396d846f16e95ea92ea 100644 (file)
@@ -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
+
 
 
 ################################################################################