[Numpy-discussion] ANN: Numpy 1.8.0 beta 1 release
Sebastian Berg
sebastian at sipsolutions.net
Thu Sep 5 04:18:06 EDT 2013
On Wed, 2013-09-04 at 22:08 -0700, Christoph Gohlke wrote:
> On 9/1/2013 9:54 AM, Charles R Harris wrote:
<snip>
>
> Hello,
>
> is this IndexError intentional in numpy 1.8? Matplotlib 1.3 fails some
> tests because of this.
>
> >>> numpy.zeros(1)[[0], :]
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> IndexError: too many indices
>
> With numpy 1.7:
> >>> numpy.zeros(1)[[0], :]
> array([ 0.])
>
Yes certainly is intentional, since you actually do have too many
indices (you have one dimension, you can only have one index). That it
worked before was a bug. If this is a real problem, maybe we have to
temporarily allow it?
- Sebastian
> Christoph
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
More information about the NumPy-Discussion
mailing list