[NumPy-Tickets] [NumPy] #674: Impossible to rename object fields

NumPy Trac numpy-tickets@scipy....
Fri Feb 25 16:21:43 CST 2011


#674: Impossible to rename object fields
------------------------+---------------------------------------------------
  Reporter:  sameer     |       Owner:  somebody
      Type:  defect     |      Status:  closed  
  Priority:  normal     |   Milestone:          
 Component:  numpy.lib  |     Version:  1.5.1   
Resolution:  fixed      |    Keywords:          
------------------------+---------------------------------------------------
Changes (by pv):

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


Comment:

 You can do
 {{{
 >>> a.dtype.names = 'notfoo', 'notbar'
 }}}

 Not supporting a.view(newdtype) when the new data type contains objects is
 as intended, as messing with object array data will cause crashes, and the
 pointers are an implementation detail anyway.

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


More information about the NumPy-Tickets mailing list