[Numpy-discussion] 1.1.1rc1 to be tagged tonight

Charles R Harris charlesr.harris@gmail....
Tue Jul 22 02:16:27 CDT 2008


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080722/2371aedf/attachment-0001.html 


More information about the Numpy-discussion mailing list