[Numpy-tickets] [NumPy] #332: Proper .name in nested types
NumPy
numpy-tickets at scipy.net
Wed Oct 11 06:29:03 CDT 2006
#332: Proper .name in nested types
-------------------------+--------------------------------------------------
Reporter: faltet | Owner: somebody
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
Hi,
I'd find rather useful to be able to access to the proper name of a nested
type in this context:
{{{
In [106]:nesteddtype=numpy.dtype([('info', [('Name', '1a2'),('Value',
'1c16')]),('y', '(2, 2)f8')])
In [107]:nesteddtype['info']
Out[107]:dtype([('Name', '|S2'), ('Value', '<c16')])
In [108]:nesteddtype['info'].name
Out[108]:'void144'
}}}
i.e. I'd expect the output for 108 to be 'info' instead of 'void144'.
Would this be difficult to implement?
Thanks
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/332>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list