Author: Maciej Fijalkowski <fij...@gmail.com>
Branch: 
Changeset: r67556:d1ee8abf66b0
Date: 2013-10-23 14:40 +0200
http://bitbucket.org/pypy/pypy/changeset/d1ee8abf66b0/

Log:    fix

diff --git a/rpython/rtyper/lltypesystem/lltype.py 
b/rpython/rtyper/lltypesystem/lltype.py
--- a/rpython/rtyper/lltypesystem/lltype.py
+++ b/rpython/rtyper/lltypesystem/lltype.py
@@ -100,8 +100,11 @@
         if self.__class__ is other.__class__:
             if self is other:
                 return True
-            if hash(self) != hash(other):
-                return False
+            try:
+                if hash(self) != hash(other):
+                    return False
+            except TypeError:
+                pass # too bad, we can't use a fastpath here
             return safe_equal(self.__dict__, other.__dict__)
         return False
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to