[Numpy-discussion] numpy.filled, again

Robert Kern robert.kern at gmail.com
Wed Jun 12 08:29:57 EDT 2013


On Wed, Jun 12, 2013 at 1:26 PM, Daniele Nicolodi <daniele at grinta.net> wrote:

> There where the additional proposal (mostly neglected on the original
> thread) to add the 'fill' optional parameter to the array constructor:
>
> np.ndarray(shape, fill=value)
>
> has an obvious meaning to me.
>
> I also don't really see why an np.empty() constructor exists, it seems
> to do the same thing that np.ndarray() does.

It predates numpy and the numpy.ndarray type.

> However, I don't know if
> adding a np.ndarray_like() constructor would make much sense.

Also that.

--
Robert Kern



More information about the NumPy-Discussion mailing list