Author: Matti Picus <matti.pi...@gmail.com>
Branch: pypy-pyarray
Changeset: r66370:b3a2caa8b269
Date: 2013-08-27 23:03 +0300
http://bitbucket.org/pypy/pypy/changeset/b3a2caa8b269/

Log:    fix so test_zjit does not fail

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
@@ -47,6 +47,9 @@
     def __init__(self, name):
         self.name = name
 
+    def lookup(self, name):
+        return self.getdictvalue(self, name)
+
 class FakeSpace(object):
     w_ValueError = W_TypeObject("ValueError")
     w_TypeError = W_TypeObject("TypeError")
@@ -204,6 +207,10 @@
                 return W_NDimArray
             return self.w_None
 
+    def lookup(self, w_obj, name):
+        w_type = self.type(w_obj)
+        return w_type.lookup(name)
+
     def gettypefor(self, w_obj):
         return None
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to