Author: Hakan Ardo <[email protected]>
Branch: 
Changeset: r47905:cbee41ad4f50
Date: 2011-10-09 19:31 +0200
http://bitbucket.org/pypy/pypy/changeset/cbee41ad4f50/

Log:    (arigato, hakanardo): make pointers behave more correctly prior to
        translation

diff --git a/pypy/rpython/lltypesystem/ll2ctypes.py 
b/pypy/rpython/lltypesystem/ll2ctypes.py
--- a/pypy/rpython/lltypesystem/ll2ctypes.py
+++ b/pypy/rpython/lltypesystem/ll2ctypes.py
@@ -1288,6 +1288,9 @@
             return False
         return force_cast(lltype.Signed, other._as_ptr()) == self.intval
 
+    def __hash__(self):
+        return self.intval
+
     def __ne__(self, other):
         return not self == other
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to