[Numpy-discussion] NA-mask interactions with existing C code
gael.varoquaux at normalesup.org
Fri May 11 11:32:02 EDT 2012
On Fri, May 11, 2012 at 09:59:16AM -0500, Travis Oliphant wrote:
> > Is there a advantage for users by making it a subclass? Nobody is saying
> > you couldn't 'inherit' the struct (make the ndmask struct be castable to
> > a PyArrayObject*) even if that is not declared in the Python type object.
> I don't really think there is an advantage of making it a subclass --- except numpy.ma is already a subclass and it might make it easier to write it's API on top of ndmasked.
Technically, could this be a usecase for the 'mixin' pattern?
More information about the NumPy-Discussion