[Numpy-tickets] [NumPy] #478: numpy.rec.array is inconsistent on objects

NumPy numpy-tickets@scipy....
Sun May 13 04:13:25 CDT 2007


#478: numpy.rec.array is inconsistent on objects
--------------------+-------------------------------------------------------
 Reporter:  faltet  |        Owner:  somebody     
     Type:  defect  |       Status:  new          
 Priority:  normal  |    Milestone:  1.0.3 Release
Component:  Other   |      Version:               
 Severity:  normal  |   Resolution:               
 Keywords:          |  
--------------------+-------------------------------------------------------
Comment (by stefan):

 The above behaviour seems consistent enough.  If you see 'array' as a
 container/list, the above statements translate to

 {{{
 rec.array([[1.0]],...)
 }}}

 vs.

 {{{
 rec.array([[[1.0]]],...)
 }}}

 The innermost container is then converted to a tuple, so you have

 {{{
 [(1.0,)]
 }}}

 vs.

 {{{
 [[(1.0,)]]
 }}}

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