[Numpy-discussion] A crazy masked-array thought

Nathaniel Smith njs at pobox.com
Sat Apr 28 12:34:04 EDT 2012


On Sat, Apr 28, 2012 at 7:38 AM, Richard Hattersley
<rhattersley at gmail.com> wrote:
> So, assuming numpy.ndarray became a strict subclass of some new masked
> array, it looks plausible that adding just a few checks to numpy.ndarray to
> exclude the masked superclass would prevent much downstream code from
> accidentally operating on masked arrays.

I think the main point I was trying to make is that it's the existence
and content of these checks that matters. They don't necessarily have
any relation at all to which thing Python calls a "superclass" or a
"subclass".

-- Nathaniel



More information about the NumPy-Discussion mailing list