[NumPy-Tickets] [NumPy] #1890: piecewise throws TypeError for int input and sin

NumPy Trac numpy-tickets@scipy....
Sat Jul 2 06:10:04 CDT 2011


#1890: piecewise throws TypeError for int input and sin
----------------------+-----------------------------------------------------
  Reporter:  deil     |       Owner:  somebody   
      Type:  defect   |      Status:  closed     
  Priority:  normal   |   Milestone:  Unscheduled
 Component:  Other    |     Version:  1.6.0      
Resolution:  invalid  |    Keywords:             
----------------------+-----------------------------------------------------

Comment(by pv):

 @charris: there is an inconsistency:
 {{{
 a[1:3] = np.array([1.1, 4])    # ok
 a[[1,4]] = np.array([1.1, 4])  # fails
 }}}
 I don't think this is intentional, so that's certainly a bug, yes?

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1890#comment:5>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list