[Numpy-discussion] Should the fields in void scalars be available?
Charles R Harris
charlesr.harris@gmail....
Fri Jun 27 10:27:32 CDT 2008
Question,
In [24]: x = array(('1', u'2'), dtype=[('a', '|S4'), ('b', '<U2')])
In [25]: x.shape
Out[25]: ()
In [26]: x['a']
Out[26]:
array('1',
dtype='|S4')
Shouldn't the last be a string?
Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080627/fced8d17/attachment.html
More information about the Numpy-discussion
mailing list