Author: Maciej Fijalkowski <[email protected]>
Branch: refactor-signature
Changeset: r50769:26c22a795ee9
Date: 2011-12-20 21:14 +0200
http://bitbucket.org/pypy/pypy/changeset/26c22a795ee9/
Log: call directly parent class init
diff --git a/pypy/module/micronumpy/REVIEW.txt
b/pypy/module/micronumpy/REVIEW.txt
--- a/pypy/module/micronumpy/REVIEW.txt
+++ b/pypy/module/micronumpy/REVIEW.txt
@@ -2,8 +2,6 @@
============
* VirtualSlice vs. W_NDimSlice?
-* Call{1, 2}.create_sig, should it call forced_result.create_sig(), instead of
- array_sig()? If not, why not?
* W_NDimSlice.__init__ calls ConcreteArray.__init__ instead of
ViewArray.__init__, W_FlatIterator as well.
* Better names for sigeq and sigeq2, sighash doesn't say if numberings are
diff --git a/pypy/module/micronumpy/interp_numarray.py
b/pypy/module/micronumpy/interp_numarray.py
--- a/pypy/module/micronumpy/interp_numarray.py
+++ b/pypy/module/micronumpy/interp_numarray.py
@@ -970,7 +970,7 @@
size *= sh
self.strides = strides
self.backstrides = backstrides
- ConcreteArray.__init__(self, size, shape, parent.dtype, parent.order,
+ ViewArray.__init__(self, size, shape, parent.dtype, parent.order,
parent)
self.start = start
@@ -1224,7 +1224,7 @@
size *= sh
self.strides = [arr.strides[-1]]
self.backstrides = [arr.backstrides[-1]]
- ConcreteArray.__init__(self, size, [size], arr.dtype, arr.order,
+ ViewArray.__init__(self, size, [size], arr.dtype, arr.order,
arr)
self.shapelen = len(arr.shape)
self.iter = OneDimIterator(arr.start, self.strides[0],
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit