[pypy-svn] r69485 - pypy/branch/shorter-guard-path/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Fri Nov 20 21:37:45 CET 2009


Author: arigo
Date: Fri Nov 20 21:37:44 2009
New Revision: 69485

Modified:
   pypy/branch/shorter-guard-path/pypy/objspace/std/multimethod.py
Log:
Don't crash when printing a FailedToImplement error.


Modified: pypy/branch/shorter-guard-path/pypy/objspace/std/multimethod.py
==============================================================================
--- pypy/branch/shorter-guard-path/pypy/objspace/std/multimethod.py	(original)
+++ pypy/branch/shorter-guard-path/pypy/objspace/std/multimethod.py	Fri Nov 20 21:37:44 2009
@@ -29,6 +29,9 @@
         self.w_type  = w_type
         self.w_value = w_value
 
+    def __str__(self):
+        return '<FailedToImplement(%s, %s)>' % (self.w_type, self.w_value)
+
 
 def raiseFailedToImplement():
     raise FailedToImplement



More information about the Pypy-commit mailing list