[Numpy-tickets] [NumPy] #732: error string on IndexError is wrong
NumPy
numpy-tickets@scipy....
Wed Apr 9 18:37:42 CDT 2008
#732: error string on IndexError is wrong
-------------------------+--------------------------------------------------
Reporter: AndrewStraw | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.5
Component: numpy.core | Version: none
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
The error string in the following is wrong.
{{{
>>> import numpy
>>> x=numpy.arange(10)
>>> x.shape=5,2
>>> x[5,1]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: index (5) out of range (0<=index<=5) in dimension 0
}}}
The final "<=" should be "<".
The attached patch fixes the issue.
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/732>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list