[Numpy-tickets] [NumPy] #453: coercion rules for boolean arrays are broken

NumPy numpy-tickets@scipy....
Mon Mar 26 16:34:45 CDT 2007


#453: coercion rules for boolean arrays are broken
------------------------+---------------------------------------------------
 Reporter:  chanley     |        Owner:  somebody
     Type:  defect      |       Status:  closed  
 Priority:  highest     |    Milestone:          
Component:  numpy.core  |      Version:  devel   
 Severity:  critical    |   Resolution:  fixed   
 Keywords:              |  
------------------------+---------------------------------------------------
Changes (by oliphant):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 This should be fixed in SVN, r3601

 The scalar/array coercion rule is that the type of the scalar will be
 ignored if the scalar is of the same kind or a lesser kind than the array.

 The recognized kinds are (in order)

 BOOL
 POSINT
 NEGINT
 FLOAT
 COMPLEX
 OBJECT

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