[Numpy-discussion] 1.1.1rc1 to be tagged tonight

Stéfan van der Walt stefan@sun.ac...
Mon Jul 21 21:40:06 CDT 2008


2008/7/20 Ryan May <rmay31@gmail.com>:
>>arr
> array([('JOE', 25.300000000000001), ('BOB', 27.899999999999999)],
>      dtype=[('stid', '|S4'), ('temp', '<f8')])

The code in SVN still breaks for more complicated dtypes, such as:

np.dtype([('x', int), ('y', [('t', int), ('s', float)])])

Please find attached a patch which addresses the issue (it passes all
unit tests).

Regards
Stéfan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loadtxt.patch
Type: application/octet-stream
Size: 5199 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080722/1ba56765/attachment.obj 


More information about the Numpy-discussion mailing list