[NumPy-Tickets] [NumPy] #1870: Cannot assign a list-of-lists to dtype=object ndarray if sublists are equal-length

NumPy Trac numpy-tickets@scipy....
Sun Aug 14 17:24:28 CDT 2011


#1870: Cannot assign a list-of-lists to dtype=object ndarray if sublists are
equal-length
-------------------------+--------------------------------------------------
  Reporter:  mjuric      |       Owner:  somebody
      Type:  defect      |      Status:  reopened
  Priority:  high        |   Milestone:  1.6.1   
 Component:  numpy.core  |     Version:  1.6.0   
Resolution:              |    Keywords:          
-------------------------+--------------------------------------------------
Changes (by jandom):

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


Comment:

 The fix appears to work for the [:] selection, but the [:,i] syntax fails
 for me:
 {{{
 a = numpy.zeros((5,5))

 v = numpy.ones((5,1))

 a[:,3] = v
 }}}
 In numpy 1.6.1 this raises:
 {{{
 ValueError?: output operand requires a reduction, but reduction is not
 enabled
 }}}

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


More information about the NumPy-Tickets mailing list