Author: Maciej Fijalkowski <[email protected]>
Branch: numpy-refactor
Changeset: r57119:800092386c2f
Date: 2012-09-04 12:54 +0200
http://bitbucket.org/pypy/pypy/changeset/800092386c2f/

Log:    scalar reshape

diff --git a/pypy/module/micronumpy/arrayimpl/scalar.py 
b/pypy/module/micronumpy/arrayimpl/scalar.py
--- a/pypy/module/micronumpy/arrayimpl/scalar.py
+++ b/pypy/module/micronumpy/arrayimpl/scalar.py
@@ -66,3 +66,7 @@
             return arr.implementation
         raise OperationError(space.w_ValueError, space.wrap(
             "total size of the array must be unchanged"))
+
+    def reshape(self, space, new_shape):
+        return self.set_shape(space, new_shape)
+        
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to