From: Benjamin Peterson Date: Sat, 4 Apr 2009 17:26:32 +0000 (+0000) Subject: must provide this method X-Git-Tag: v3.1a2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2504b7a06f6ad833f443b02e5ea26ced207ad0ae;p=python must provide this method --- diff --git a/Lib/collections.py b/Lib/collections.py index 0d35bfd0c5..8fb123fbc1 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 + ################################################################################