[Numpy-discussion] Conversion from structured dtype to object changed in Numpy 1.6.0.
Pauli Virtanen
pav at iki.fi
Thu May 19 07:59:54 EDT 2011
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.
--
Pauli Virtanen
More information about the NumPy-Discussion
mailing list