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

Mark Dickinson mdickinson at enthought.com
Sat May 21 16:28:30 EDT 2011


On Sat, May 21, 2011 at 9:25 PM, Mark Wiebe <mwwiebe at gmail.com> wrote:
> 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.

But I hadn't even got around to filing the bug report yet!

Thank you.

Mark



More information about the NumPy-Discussion mailing list