[Numpy-discussion] asarray/anyarray; matrix/subclass
Charles R Harris
charlesr.harris at gmail.com
Sat Nov 10 19:39:10 EST 2018
On Sat, Nov 10, 2018 at 2:15 PM Eric Wieser <wieser.eric+numpy at gmail.com>
> > If the only way MaskedArray violates Liskov is in terms of NA skipping
> aggregations by default, then this might be viable
> One of the ways to fix these liskov substitution problems is just to
> introduce more base classes - for instance, if we had an `NDContainer` base
> class with only slicing support, then masked arrays would be an exact
> liskov substitution, but np.matrix would not.
I've had the same thought and wouldn't be surprised if others have
considered that possibility. Travis would be a good guy to ask about that.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion