[pypy-commit] pypy default: (arigato, hakanardo): make pointers behave more correctly prior to translation
hakanardo
noreply at buildbot.pypy.org
Sun Oct 9 19:31:31 CEST 2011
Author: Hakan Ardo <hakan at debian.org>
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
More information about the pypy-commit
mailing list