[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 20:38:05 CDT 2007


#603: numpy 1.0.3.1, python crash when indexing an array with a int32 ndarray
(see example)
------------------------+---------------------------------------------------
 Reporter:  djkawa      |        Owner:  jarrod.millman
     Type:  defect      |       Status:  assigned      
 Priority:  normal      |    Milestone:  1.0.4         
Component:  numpy.core  |      Version:  none          
 Severity:  normal      |   Resolution:                
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by jarrod.millman):

  * status:  new => assigned
  * owner:  somebody => jarrod.millman

Comment:

 It seems to work with the current development version:
 {{{
 >>> import numpy;numpy.version.version
 '1.0.4.dev4326'
 >>> 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]
 0.0
 }}}

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


More information about the Numpy-tickets mailing list