Author: Matti Picus <[email protected]>
Branch: ndarray-subtype
Changeset: r65405:e6eee323ec9a
Date: 2013-07-15 19:38 +0300
http://bitbucket.org/pypy/pypy/changeset/e6eee323ec9a/

Log:    more hacks in compile.py

diff --git a/pypy/module/micronumpy/compile.py 
b/pypy/module/micronumpy/compile.py
--- a/pypy/module/micronumpy/compile.py
+++ b/pypy/module/micronumpy/compile.py
@@ -212,6 +212,10 @@
     def call_function(self, tp, w_dtype):
         return w_dtype
 
+    def call_method(self, w_obj, s, *args, **kwargs):
+        # XXX hack
+        return getattr(w_obj, 'descr_' + s)(self, *args, **kwargs)
+
     @specialize.arg(1)
     def interp_w(self, tp, what):
         assert isinstance(what, tp)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to