[pypy-commit] pypy numpy-refactor: scalar reshape

fijal noreply at buildbot.pypy.org
Tue Sep 4 13:03:50 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
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)
+        


More information about the pypy-commit mailing list