[pypy-svn] r45937 - pypy/branch/pypy-more-rtti-inprogress/interpreter

xoraxax at codespeak.net xoraxax at codespeak.net
Thu Aug 23 17:57:05 CEST 2007


Author: xoraxax
Date: Thu Aug 23 17:57:05 2007
New Revision: 45937

Modified:
   pypy/branch/pypy-more-rtti-inprogress/interpreter/gateway.py
Log:
Added __repr__ for ApplevelClass

Modified: pypy/branch/pypy-more-rtti-inprogress/interpreter/gateway.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/interpreter/gateway.py	(original)
+++ pypy/branch/pypy-more-rtti-inprogress/interpreter/gateway.py	Thu Aug 23 17:57:05 2007
@@ -757,6 +757,9 @@
         else:
             self.can_use_geninterp = True
 
+    def __repr__(self):
+        return "<ApplevelClass filename=%r can_use_geninterp=%r>" % (self.filename, self.can_use_geninterp)
+
     def getwdict(self, space):
         return space.fromcache(ApplevelCache).getorbuild(self)
 



More information about the Pypy-commit mailing list