diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-04-04 17:26:32 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-04-04 17:26:32 (GMT) |
commit | 2504b7a06f6ad833f443b02e5ea26ced207ad0ae (patch) | |
tree | 62c1eabd28857b3a277b96c2572e1d86462c4137 /Lib/collections.py | |
parent | e099b37428ab72cf70c745e941b9767fcad8eaa3 (diff) | |
download | cpython-2504b7a06f6ad833f443b02e5ea26ced207ad0ae.zip cpython-2504b7a06f6ad833f443b02e5ea26ced207ad0ae.tar.gz cpython-2504b7a06f6ad833f443b02e5ea26ced207ad0ae.tar.bz2 |
must provide this method
Diffstat (limited to 'Lib/collections.py')
-rw-r--r-- | Lib/collections.py | 3 |
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 + ################################################################################ |