[pypy-svn] r70848 - pypy/branch/lazy-operr-format/pypy/objspace/std

arigo at codespeak.net arigo at codespeak.net
Mon Jan 25 19:07:25 CET 2010


Author: arigo
Date: Mon Jan 25 19:07:25 2010
New Revision: 70848

Modified:
   pypy/branch/lazy-operr-format/pypy/objspace/std/multimethod.py
Log:
Add a get_w_value() method there too.
Avoids the trouble of finding where we replaced
'e.w_value' with 'e.get_w_value()' but should
not have :-)


Modified: pypy/branch/lazy-operr-format/pypy/objspace/std/multimethod.py
==============================================================================
--- pypy/branch/lazy-operr-format/pypy/objspace/std/multimethod.py	(original)
+++ pypy/branch/lazy-operr-format/pypy/objspace/std/multimethod.py	Mon Jan 25 19:07:25 2010
@@ -29,6 +29,10 @@
         self.w_type  = w_type
         self.w_value = w_value
 
+    def get_w_value(self, space):
+        # convenience: same semantics as with OperationError
+        return self.w_value
+
     def __str__(self):
         return '<FailedToImplement(%s, %s)>' % (self.w_type, self.w_value)
 



More information about the Pypy-commit mailing list