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? Gaƫl _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion