Author: Matti Picus <[email protected]>
Branch:
Changeset: r65043:8bceb82940f0
Date: 2013-06-27 23:14 +0300
http://bitbucket.org/pypy/pypy/changeset/8bceb82940f0/
Log: fix for noop
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
@@ -1034,6 +1034,8 @@
if copy:
w_ret = w_object.descr_copy(space)
else:
+ if ndmin<= len(shape):
+ return w_object
new_impl = w_object.implementation.set_shape(space, w_object,
shape)
w_ret = W_NDimArray(new_impl)
if ndmin > len(shape):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit