<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 9:01 PM, Alexander Belopolsky <span dir="ltr"><<a href="mailto:ndarray@mac.com" target="_blank">ndarray@mac.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 11:31 AM, Nathaniel Smith <span dir="ltr"><<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="overflow:hidden">And in the long run, I<br>

think the goal is to move people away from inheriting from np.ndarray.</div></blockquote></div><br>This is music to my ears, but what is the future of <a href="http://numpy.ma" target="_blank">numpy.ma</a>?  I understand that <a href="http://numpy.oldnumeric.ma" target="_blank">numpy.oldnumeric.ma</a> (the older version written without inheritance) has been deprecated and slated to be removed in 1.9.  I also have seen some attempts to bring ma functionality into the core ndarray object, but those have not been successful as far as I can tell.</div>
</div></blockquote><div><br></div><div><a href="http://numpy.ma">numpy.ma</a> is pretty much unmaintained at the moment, but it is pretty stable and there are no plans to remove it. I'm kinda sad that moving the functionality into numpy came to naught, but the time was short and the disagreements were long. Hopefully we learned something in the attempt. I don't know of any plans for masked arrays at the moment apart for waiting to see what happens with dynd. I don't know what the chances of an overhaul might be, or even if it could be made without disturbing current code. I think we would have to offer something special to motivate folks to even think of switching.<br>
 <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<div class="gmail_extra"><br></div><div class="gmail_extra">In general, what is the future of inheriting from np.ndarray?</div></div></blockquote><div><br></div><div>Well, we can't do much about it except discourage it. It is often a bad design decision that people get sucked into because they want to borrow some functionality. OTOH, there hasn't been an easy way to make use of ndarray functionality for non-subclasses, and there is a *lot* to implement to make an ndarray like object. Hopefully the new `__numpy_ufunc__` attribute will make that easier.<br>
<br></div><div>If you have suggestions we'd like to hear them.<br><br></div><div>Chuck<br></div></div></div></div>