[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:10:44 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      |    Keywords:          
------------------------+---------------------------------------------------
 >>> import numpy
 >>> from numpy import array
 >>> array = array([0.0], dtype = numpy.float64)
 >>> index = array([0.0], dtype = numpy.int32)
 >>> cum_var[index]
 array([ 0.])
 >>> index = array(0., dtype = numpy.int32)
 >>> cum_var[index]

 ----> CRASH

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/603>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list