Author: mattip <[email protected]>
Branch: numpypy-real-as-view
Changeset: r59898:5bfae8c3b2fc
Date: 2013-01-09 22:18 +0200
http://bitbucket.org/pypy/pypy/changeset/5bfae8c3b2fc/
Log: fixes, now tests pass
diff --git a/pypy/module/micronumpy/arrayimpl/concrete.py
b/pypy/module/micronumpy/arrayimpl/concrete.py
--- a/pypy/module/micronumpy/arrayimpl/concrete.py
+++ b/pypy/module/micronumpy/arrayimpl/concrete.py
@@ -122,7 +122,7 @@
self.offset %= self.size
class AxisIterator(base.BaseArrayIterator):
- def __init__(self, array, dtype, shape, dim):
+ def __init__(self, array, shape, dim):
self.shape = shape
strides = array.get_strides()
backstrides = array.get_backstrides()
diff --git a/pypy/module/micronumpy/interp_dtype.py
b/pypy/module/micronumpy/interp_dtype.py
--- a/pypy/module/micronumpy/interp_dtype.py
+++ b/pypy/module/micronumpy/interp_dtype.py
@@ -161,8 +161,8 @@
alternate_constructors=[], aliases=[],
fields=None, fieldnames=None, native=True, float_type=None):
W_Dtype.__init__(self, itemtype, num, kind, name, char, w_box_type,
- alternate_constructors=[], aliases=[],
- fields=None, fieldnames=None, native=True)
+ alternate_constructors=alternate_constructors,
aliases=aliases,
+ fields=fields, fieldnames=fieldnames, native=native)
self.float_type = float_type
def is_complex_type(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit