[Numpy-tickets] [NumPy] #640: Index assignment into pre-allocated array does silent type cast, causing user confusion (or worse)

NumPy numpy-tickets@scipy....
Fri Jan 4 15:17:18 CST 2008


#640: Index assignment into pre-allocated array does silent type cast, causing
user confusion (or worse)
------------------------+---------------------------------------------------
 Reporter:  brorson     |        Owner:  somebody
     Type:  defect      |       Status:  new     
 Priority:  normal      |    Milestone:  1.0.5   
Component:  numpy.core  |      Version:  none    
 Severity:  normal      |   Resolution:          
 Keywords:              |  
------------------------+---------------------------------------------------
Comment (by brorson):

 FWIW, the desired behavior is obvious:  NumPy should realize that the
 elements on the RHS are complex, and set the dtype of the target array to
 complex.

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/640#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