[NumPy-Tickets] [NumPy] #2068: Named dtype array: Difference between a[0]['name'] and a['name'][0]?

NumPy Trac numpy-tickets@scipy....
Mon Feb 27 15:41:43 CST 2012


#2068: Named dtype array: Difference between a[0]['name'] and a['name'][0]?
--------------------------+-------------------------------------------------
 Reporter:  nschloe       |       Owner:  somebody      
     Type:  defect        |      Status:  needs_decision
 Priority:  normal        |   Milestone:  Unscheduled   
Component:  Other         |     Version:  1.6.1         
 Keywords:  dtype, array  |  
--------------------------+-------------------------------------------------
Changes (by oliphant):

  * status:  new => needs_decision


Comment:

 This is a known quirk.   a[0] is a numpy.void array-scalar type (basically
 something like a named tuple).    It would take some work for this to be
 possible and is not a priority at this point.   One possibility would be
 if a[0] instead returned a 0-d array whenever the dtype was not simple.

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


More information about the NumPy-Tickets mailing list