[pypy-svn] r31343 - pypy/dist/pypy/rpython/lltypesystem

arigo at codespeak.net arigo at codespeak.net
Wed Aug 16 13:46:26 CEST 2006


Author: arigo
Date: Wed Aug 16 13:46:24 2006
New Revision: 31343

Modified:
   pypy/dist/pypy/rpython/lltypesystem/lltype.py
Log:
Temporary fix: the _ssl module produces GcStructs whose repr is so
incredibly large it doesn't fit in standard RAM sizes.  Clearly we need
to fix the reprs, but for now let's avoid computing the repr just to put
it into an exception message (which is caught and ignored anyway).



Modified: pypy/dist/pypy/rpython/lltypesystem/lltype.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/lltype.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/lltype.py	Wed Aug 16 13:46:24 2006
@@ -1562,7 +1562,8 @@
     if not isinstance(GCSTRUCT, RttiStruct):
         raise TypeError, "expected a RttiStruct: %s" % GCSTRUCT
     if GCSTRUCT._runtime_type_info is None:
-        raise ValueError, "no attached runtime type info for %s" % GCSTRUCT
+        raise ValueError, ("no attached runtime type info for GcStruct %s" % 
+                           GCSTRUCT._name)
     return _ptr(Ptr(RuntimeTypeInfo), GCSTRUCT._runtime_type_info)
 
 def runtime_type_info(p):



More information about the Pypy-commit mailing list