[Checkins] SVN: zope.interface/trunk/ Revert r122462 after updating zope.app.interface.
Tres Seaver
tseaver at palladion.com
Thu Aug 11 15:24:13 EDT 2011
Log message for revision 122545:
Revert r122462 after updating zope.app.interface.
Changed:
U zope.interface/trunk/CHANGES.txt
U zope.interface/trunk/src/zope/interface/interface.py
-=-
Modified: zope.interface/trunk/CHANGES.txt
===================================================================
--- zope.interface/trunk/CHANGES.txt 2011-08-11 19:21:25 UTC (rev 122544)
+++ zope.interface/trunk/CHANGES.txt 2011-08-11 19:24:13 UTC (rev 122545)
@@ -11,12 +11,10 @@
- Fix testing deprecation warnings issued when tested under Py3K.
-- Fix ``InterfaceClass.__hash__`` to match comparison function.
-
3.6.4 (2011-07-04)
------------------
-- LP #804951: InterfaceClass instances were unhashable under Python 3.x.
+- LP 804951: InterfaceClass instances were unhashable under Python 3.x.
3.6.3 (2011-05-26)
------------------
Modified: zope.interface/trunk/src/zope/interface/interface.py
===================================================================
--- zope.interface/trunk/src/zope/interface/interface.py 2011-08-11 19:21:25 UTC (rev 122544)
+++ zope.interface/trunk/src/zope/interface/interface.py 2011-08-11 19:24:13 UTC (rev 122545)
@@ -682,8 +682,7 @@
return (n1 > n2) - (n1 < n2)
def __hash__(self):
- return hash((getattr(self, '__name__', ''),
- getattr(self, '__module__', '')))
+ return hash((self.__name__, self.__module__))
def __eq__(self, other):
c = self.__cmp(self, other)
More information about the checkins
mailing list