[Numpy-discussion] Should the fields in void scalars be available?

Charles R Harris charlesr.harris at gmail.com
Fri Jun 27 11:27:32 EDT 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://mail.python.org/pipermail/numpy-discussion/attachments/20080627/fced8d17/attachment.html>


More information about the NumPy-Discussion mailing list