[Numpy-tickets] [NumPy] #336: Creating new datatypes from existing ones

NumPy numpy-tickets at scipy.net
Fri Oct 13 15:21:32 CDT 2006

#336: Creating new datatypes from existing ones
 Reporter:  faltet       |        Owner:  somebody
     Type:  enhancement  |       Status:  closed  
 Priority:  normal       |    Milestone:          
Component:  numpy.core   |      Version:          
 Severity:  normal       |   Resolution:  wontfix 
 Keywords:               |  
Changes (by oliphant):

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


 You can do this using:

 dtype([(val, nt[val]) for val in ['info', 'y']])

 The syntax you suggested won't work because list entries must be in array
 interface format (list of tuples) where the first entry is the name and
 the second is the data-type object or something that can be converted to

 Too many changes would be needed to support the syntax you suggest.

Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/336#comment:1>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list