[pypy-svn] r61040 - pypy/branch/oo-jit/pypy/rpython/lltypesystem

arigo at codespeak.net arigo at codespeak.net
Fri Jan 16 17:23:33 CET 2009


Author: arigo
Date: Fri Jan 16 17:23:31 2009
New Revision: 61040

Modified:
   pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
Fix the previous problem by reverting a __hash__ method
introduced recently.


Modified: pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py	Fri Jan 16 17:23:31 2009
@@ -364,11 +364,12 @@
     def __ne__(self, other):
         return not (self == other)
 
-    def __hash__(self):
-        if self._storage is not None:
-            return ctypes.addressof(self._storage)
-        else:
-            return object.__hash__(self)
+## XXX the following hash method breaks stuff! Look at r60058 more carefully
+##    def __hash__(self):
+##        if self._storage is not None:
+##            return ctypes.addressof(self._storage)
+##        else:
+##            return object.__hash__(self)
 
     def __repr__(self):
         if self._storage is None:



More information about the Pypy-commit mailing list