[pypy-commit] pypy matrixmath: fix find_size for Scalar

mattip noreply at buildbot.pypy.org
Sun Nov 27 22:08:00 CET 2011


Author: mattip
Branch: matrixmath
Changeset: r49863:529066ec8ea9
Date: 2011-11-27 21:41 +0200
http://bitbucket.org/pypy/pypy/changeset/529066ec8ea9/

Log:	fix find_size for Scalar

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
@@ -812,7 +812,7 @@
         self.value = value
 
     def find_size(self):
-        raise ValueError
+        return 1
 
     def get_concrete(self):
         return self


More information about the pypy-commit mailing list