Author: Brian Kearns <[email protected]>
Branch:
Changeset: r67590:3e3897b5cbd0
Date: 2013-10-24 22:48 -0400
http://bitbucket.org/pypy/pypy/changeset/3e3897b5cbd0/
Log: attempt to fix the logic introduced in 72c1e31
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
@@ -101,8 +101,8 @@
if self is other:
return True
try:
- if hash(self) != hash(other):
- return False
+ if hash(self) == hash(other):
+ return True
except TypeError:
pass # too bad, we can't use a fastpath here
return safe_equal(self.__dict__, other.__dict__)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit