[pypy-svn] r27212 - pypy/dist/pypy/rpython/lltypesystem
arigo at codespeak.net
arigo at codespeak.net
Mon May 15 01:17:26 CEST 2006
Author: arigo
Date: Mon May 15 01:17:24 2006
New Revision: 27212
Modified:
pypy/dist/pypy/rpython/lltypesystem/llmemory.py
Log:
A last fix and XXX for tonight.
Modified: pypy/dist/pypy/rpython/lltypesystem/llmemory.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/llmemory.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/llmemory.py Mon May 15 01:17:24 2006
@@ -284,6 +284,7 @@
class fakeaddress(object):
def __init__(self, ob, offset=None):
+ #assert not isinstance(ob, lltype._parentable) - XXX in-progress
self.ob = ob or None # replace null pointers with None
self.offset = offset
@@ -422,7 +423,7 @@
def convert(self, value):
if isinstance(value, lltype._ptr):
return fakeaddress(value)
- elif isinstance(value, Address):
+ elif lltype.typeOf(value) == Address:
return value
else:
raise TypeError(value)
More information about the Pypy-commit
mailing list