[Numpy-discussion] Short-hand array creation in `numpy.mat` style

Chris Barker chris.barker at noaa.gov
Fri Jul 18 14:52:31 EDT 2014


On Fri, Jul 18, 2014 at 11:49 AM, Nathaniel Smith <njs at pobox.com> wrote:

> Going through np.mat also fails on the meta-goal, which is to remove
> reasons for people to prefer np.matrix to np.ndarray, so that eventually we
> can deprecate the former without harm.
>
> As far as this goal goes, it's all very well for some of us to say that
> users should toughen up or whatever, but it's useless: they'll just ignore
> you and use np.mat because it's easier. And then we have even more of a
> mess to clean up later.
>

so maybe don't do anything new, and np.mat can produce an array at some
point in the future when np.matrix is deprecated....

-CHB

-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140718/e2bdb129/attachment.html>


More information about the NumPy-Discussion mailing list