[Numpy-tickets] [NumPy] #603: numpy 1.0.3.1, python crash when indexing an array with a int32 ndarray (see example)
NumPy
numpy-tickets@scipy....
Mon Oct 29 07:13:26 CDT 2007
#603: numpy 1.0.3.1, python crash when indexing an array with a int32 ndarray
(see example)
------------------------+---------------------------------------------------
Reporter: djkawa | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone: 1.0.4
Component: numpy.core | Version: none
Severity: normal | Resolution:
Keywords: |
------------------------+---------------------------------------------------
Comment (by djkawa):
sorry, for wrong formatting of the code example, here is a better one i
hope.
{{{
>>> import numpy
>>> from numpy import array
>>> an_array = array([0.0], dtype = numpy.float64)
>>> index = array([0.0], dtype = numpy.int32)
>>> an_array[index]
array([ 0.])
>>> index = array(0., dtype = numpy.int32)
>>> an_array[index]
}}}
--> CRASH
--
Ticket URL: <http://scipy.org/scipy/numpy/ticket/603#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list