[pypy-issue] [issue964] numpypy.zeros([]) returns wrong result

mikefc tracker at bugs.pypy.org
Sat Dec 31 23:15:52 CET 2011


mikefc <coolbutuseless at gmail.com> added the comment:

ugh. bad editing:

problem 1: to_str for concrete arrays with ndims==0 is broken.
 
If you look at ConcreteArray.to_str, there is one path conditional upon ndims==0 
which prints the extra '[' in the repr.  However, I think that if ndims==0, the 
value should be Scalar and never a ConcreteArray. Could someone with more numpypy 
experience weigh in here?  I just removed the code path for ndims==0 
entirely.

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue964>
________________________________________


More information about the pypy-issue mailing list