Author: Romain Guillebert <[email protected]>
Branch: numpypy-array_prepare_-array_wrap
Changeset: r67517:f473599db4d8
Date: 2013-10-22 17:34 +0200
http://bitbucket.org/pypy/pypy/changeset/f473599db4d8/

Log:    Fix FakeObjSpace.lookup

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
@@ -208,8 +208,7 @@
             return self.w_None
 
     def lookup(self, w_obj, name):
-        w_type = self.type(w_obj)
-        return w_type.lookup(name)
+        return w_obj.getdictvalue(self, name)
 
     def gettypefor(self, w_obj):
         return None
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to