Author: Maciej Fijalkowski <[email protected]>
Branch: refactor-signature
Changeset: r50768:a9d8fe792078
Date: 2011-12-20 21:12 +0200
http://bitbucket.org/pypy/pypy/changeset/a9d8fe792078/
Log: call create_sig instead of array_sig, for symmetry mostly
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
@@ -1,8 +1,6 @@
REVIEW NOTES
============
-* Scalar.reshape should turn the value into an array correct for an input of
- ``1`` or ``(1,)``.
* VirtualSlice vs. W_NDimSlice?
* Call{1, 2}.create_sig, should it call forced_result.create_sig(), instead of
array_sig()? If not, why not?
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
@@ -753,7 +753,7 @@
def create_sig(self, res_shape):
if self.forced_result is not None:
- return self.forced_result.array_sig(res_shape)
+ return self.forced_result.create_sig(res_shape)
return signature.Call1(self.ufunc, self.name,
self.values.create_sig(res_shape))
@@ -777,7 +777,7 @@
def create_sig(self, res_shape):
if self.forced_result is not None:
- return self.forced_result.array_sig(res_shape)
+ return self.forced_result.create_sig(res_shape)
return signature.Call2(self.ufunc, self.name, self.calc_dtype,
self.left.create_sig(res_shape),
self.right.create_sig(res_shape))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit