On Sat, Jul 24, 2010 at 4:14 PM, Martin Galpin <gal...@gmail.com> wrote:
> Hello, > > 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 > > -- > Martin > > I have moved this over to the numpy-discussion list. Ben Root
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion