[pypy-svn] r47210 - pypy/branch/kill-keepalives-again/pypy/rpython/lltypesystem

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Oct 5 22:49:10 CEST 2007


Author: cfbolz
Date: Fri Oct  5 22:49:09 2007
New Revision: 47210

Modified:
   pypy/branch/kill-keepalives-again/pypy/rpython/lltypesystem/lltype.py
Log:
add a helpful comment for the crashes that come from the restrictions to access
interior pointers and do certain things with them.


Modified: pypy/branch/kill-keepalives-again/pypy/rpython/lltypesystem/lltype.py
==============================================================================
--- pypy/branch/kill-keepalives-again/pypy/rpython/lltypesystem/lltype.py	(original)
+++ pypy/branch/kill-keepalives-again/pypy/rpython/lltypesystem/lltype.py	Fri Oct  5 22:49:09 2007
@@ -693,6 +693,9 @@
             return UniChar
         if issubclass(tp, Symbolic):
             return val.lltype()
+        # if you get a TypeError: typeOf('_interior_ptr' object)
+        # here, it is very likely that you are accessing an interior pointer
+        # in an illegal way!
         raise TypeError("typeOf(%r object)" % (tp.__name__,))
 
 _to_primitive = {



More information about the Pypy-commit mailing list