[NumPy-Tickets] [NumPy] #1557: Bug with dtype.type for structured arrays

NumPy Trac numpy-tickets@scipy....
Tue Jul 27 12:56:22 CDT 2010

#1557: Bug with dtype.type for structured arrays
  Reporter:  robitaille  |       Owner:  somebody
      Type:  defect      |      Status:  closed  
  Priority:  normal      |   Milestone:  2.0.0   
 Component:  Other       |     Version:          
Resolution:  invalid     |    Keywords:          
Changes (by pv):

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


 It's the correct data type.
 x = dtype(...)
 returns the first field of the data type. The first field in your case is
 a sub-array containing 2 elements, and the correct scalar type for that is
 indeed `void`.

 Note that you are not creating "a structured array with vector columns",
 you create a structured array, with a field named 'a' that contains a sub-
 array of 2 floats.

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

More information about the NumPy-Tickets mailing list