[pypy-svn] r5490 - pypy/trunk/src/pypy/interpreter

rxe at codespeak.net rxe at codespeak.net
Thu Jul 8 17:40:39 CEST 2004


Author: rxe
Date: Thu Jul  8 17:40:38 2004
New Revision: 5490

Modified:
   pypy/trunk/src/pypy/interpreter/function.py
Log:
Route get() on wrapped object through the object space.



Modified: pypy/trunk/src/pypy/interpreter/function.py
==============================================================================
--- pypy/trunk/src/pypy/interpreter/function.py	(original)
+++ pypy/trunk/src/pypy/interpreter/function.py	Thu Jul  8 17:40:38 2004
@@ -101,8 +101,7 @@
         return self.space.call_args(self.w_function, args)
 
     def descr_method_get(self, w_obj, w_cls=None):
-        function = self.space.unwrap(self.w_function)
-        return function.descr_function_get(w_obj, w_cls=w_cls)
+        return self.space.get(self.w_function, w_obj, w_type=w_cls)
 
     def descr_method_call(self, __args__):
         return self.call_args(__args__)



More information about the Pypy-commit mailing list