[Numpy-discussion] Conversion from structured dtype to object changed in Numpy 1.6.0.

Mark Wiebe mwwiebe at gmail.com
Sat May 21 16:25:34 EDT 2011


On Thu, May 19, 2011 at 6:59 AM, Pauli Virtanen <pav at iki.fi> wrote:

> Thu, 19 May 2011 12:36:22 +0100, Mark Dickinson wrote:
> [clip]
> >>>> from numpy import array
> >>>> x = array((1.2, 2.3), dtype=[('field1', float), ('field2', float)])
> >>>> x.astype(object)
> > array(1.2, dtype=object)
> >
> > Was this change intentional, or should I file a bug?  I couldn't find
> > any reference to it in the changelog or release notes.
>
> Looks like a bug -- the change was not intentional.
>

I've committed a fix for this.

-Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110521/f06758e7/attachment.html>


More information about the NumPy-Discussion mailing list