[Numpy-discussion] deprecate numpy.matrix

alex argriffi at ncsu.edu
Thu Feb 13 10:35:29 EST 2014

On Mon, Feb 10, 2014 at 11:16 AM, Alexander Belopolsky <ndarray at mac.com> wrote:
> On Sun, Feb 9, 2014 at 4:59 PM, alex <argriffi at ncsu.edu> wrote:
>> On the other hand, it really needs to be deprecated.
> While numpy.matrix may have its problems, a NEP should list a better
> rationale than the above to gain acceptance.
> Personally, I decided not to use numpy.matrix in production code about 10
> years ago and never looked back to that decision.  I've heard however that
> some of the worst inheritance warts have been fixed over the years.  I also
> resisted introducing inheritance  in the implementation of masked arrays,
> but I lost that argument.  For better or worse, inheritance from ndarray is
> here to stay and I would rather see numpy.matrix stay as a test-bed for
> fixing inheritance issues rather than see it deprecated and have the same
> issues pop up in ma or elsewhere.

btw here's an issue https://github.com/scipy/scipy/issues/3324
reported on scipy github this morning, involving the interaction
between numpy.matrix and masked arrays.


More information about the NumPy-Discussion mailing list