[Numpy-discussion] Difference in astype() for scalars and arrays?
Mon Sep 13 07:16:49 CDT 2010
Mon, 13 Sep 2010 13:51:51 +0200, Lorenz Hüdepohl wrote:
> I'm fiddling with some endianness / binary representation issue and
> stumbled upon this puzzling behavior of astype(): It does not seem to
> work as expected - for me at least ;) - when given a scalar:
>>>> import numpy as np
>>>> np.array(42, dtype=">i4").astype('>i4').dtype
Doesn't seem correct -- please file a bug ticket.
More information about the NumPy-Discussion