[pypy-commit] pypy numpy-record-dtypes: implement more stuff on fake objspace

fijal noreply at buildbot.pypy.org
Sat Mar 3 08:05:36 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-record-dtypes
Changeset: r53135:9b1cb0354751
Date: 2012-03-02 23:05 -0800
http://bitbucket.org/pypy/pypy/changeset/9b1cb0354751/

Log:	implement more stuff on fake objspace

diff --git a/pypy/objspace/fake/objspace.py b/pypy/objspace/fake/objspace.py
--- a/pypy/objspace/fake/objspace.py
+++ b/pypy/objspace/fake/objspace.py
@@ -207,6 +207,11 @@
         is_arguments(args)
         return w_some_obj()
 
+    def get_and_call_function(space, w_descr, w_obj, *args_w):
+        args = argument.Arguments(space, list(args_w))
+        w_impl = space.get(w_descr, w_obj)
+        return space.call_args(w_impl, args)
+
     def gettypefor(self, cls):
         return self.gettypeobject(cls.typedef)
 


More information about the pypy-commit mailing list