Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r64002:31390ca4bf23
Date: 2013-05-12 13:32 +0200
http://bitbucket.org/pypy/pypy/changeset/31390ca4bf23/
Log: Fix some (but not all) problems with test_zjit
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
@@ -58,7 +58,8 @@
w_str = "str"
w_unicode = "unicode"
w_complex = "complex"
-
+ w_dict = "dict"
+
def __init__(self):
"""NOT_RPYTHON"""
self.fromcache = InternalSpaceCache(self).getorbuild
@@ -115,9 +116,13 @@
def newcomplex(self, r, i):
return ComplexObject(r, i)
- def listview(self, obj):
+ def listview(self, obj, number=-1):
assert isinstance(obj, ListObject)
+ if number != -1:
+ assert number == 2
+ return [obj.items[0], obj.items[1]]
return obj.items
+
fixedview = listview
def float(self, w_obj):
@@ -480,7 +485,7 @@
w_res = neg.call(interp.space, [arr])
elif self.name == "cos":
cos = interp_ufuncs.get(interp.space).cos
- w_res = cos.call(interp.space, [arr])
+ w_res = cos.call(interp.space, [arr])
elif self.name == "flat":
w_res = arr.descr_get_flatiter(interp.space)
elif self.name == "argsort":
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit