[Numpy-discussion] Short-hand array creation in `numpy.mat` style
Alexander Belopolsky
ndarray at mac.com
Sun Jul 6 22:27:21 EDT 2014
On Sun, Jul 6, 2014 at 6:06 PM, Eric Firing <efiring at hawaii.edu> wrote:
> (I'm not entirely convinced
> np.arr() is a good idea at all; but if it is, it must be kept simple.)
>
If you are going to introduce this functionality, please don't call it
np.arr.
Right now, np.a<tab> presents you with a whopping 53 completion choices.
Adding "r", narrows that to 21, but np.arr<tab> completes to np.array
right away. Please don't introduce another bump in this road.
"Namespaces are one honking great idea -- let's do more of those!"
I would suggest calling it something like np.array_simple or
np.array_from_string, but the best choice IMO, would be
np.ndarray.from_string (a static constructor method).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140706/a3c72ad6/attachment.html>
More information about the NumPy-Discussion
mailing list