[Python-checkins] r71176 - python/branches/py3k/Lib/collections.py

benjamin.peterson python-checkins at python.org
Sat Apr 4 19:26:32 CEST 2009


Author: benjamin.peterson
Date: Sat Apr 4 19:26:32 2009
New Revision: 71176
Log:
must provide this method
Modified:
 python/branches/py3k/Lib/collections.py
Modified: python/branches/py3k/Lib/collections.py
==============================================================================
--- python/branches/py3k/Lib/collections.py	(original)
+++ python/branches/py3k/Lib/collections.py	Sat Apr 4 19:26:32 2009
@@ -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
+
 
 
 ################################################################################


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /