
July 22, 2008
7:16 a.m.
On Mon, Jul 21, 2008 at 8:40 PM, Stéfan van der Walt <stefan@sun.ac.za> wrote:
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).
This bit is illegal syntax in Python 2.3 X.append(tuple(conv(val) for (conv, val) in zip(converterseq, vals))) So this isn't going to work for 1.1.1 Chuck