[SciPy-User] numpy.append and persisting original datatype
Sat Jul 24 21:08:09 CDT 2010
On Sat, Jul 24, 2010 at 4:14 PM, Martin Galpin <email@example.com> wrote:
> Given the following example:
> import numpy as np
> foo = np.array(, dtype=np.float32)
> print a.dtype
> >> float32
> foo = np.append(foo, 1)
> print foo.dtype
> >> float64
> Is this the correct behaviour? I realise that numpy.append() returns a new
> copy of foo but is it the correct behaviour that the original datatype is
> not persisted? If so, should this not be noted in the documentation?
> Forgive me if I have missed something.
> Best wishes
I have moved this over to the numpy-discussion list.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User