[pypy-svn] r27511 - pypy/dist/pypy/rpython/lltypesystem
cfbolz at codespeak.net
cfbolz at codespeak.net
Sat May 20 17:38:40 CEST 2006
Author: cfbolz
Date: Sat May 20 17:38:38 2006
New Revision: 27511
Modified:
pypy/dist/pypy/rpython/lltypesystem/llmemory.py
Log:
this is really a dangling pointer, not an access to NULL
Modified: pypy/dist/pypy/rpython/lltypesystem/llmemory.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/llmemory.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/llmemory.py Sat May 20 17:38:38 2006
@@ -394,6 +394,9 @@
class NullAddressError(Exception):
pass
+class DanglingPointerError(Exception):
+ pass
+
NULL = fakeaddress(None)
NULL.intaddress = 0 # this is to make memory.lladdress more happy
Address = lltype.Primitive("Address", NULL)
@@ -485,7 +488,7 @@
return None
ob = self.ref()
if ob is None:
- raise NullAddressError
+ raise DanglingPointerError
return ob
def __repr__(self):
if self.ref is None:
More information about the Pypy-commit
mailing list