[Numpy-discussion] _wrapit bug?

Charles R Harris charlesr.harris at gmail.com
Sat Jul 17 09:40:28 EDT 2010


On Sun, Jun 20, 2010 at 2:43 PM, Benjamin Root <ben.root at ou.edu> wrote:

> Hi, I was just digging through the fromnumeric.py code when I noticed that
> the function _wrapit used asarray() rather than asanyarray().  I don't know
> if this function really gets used anymore (as it gets called in special
> situations), but would seem to be an issue as it would cause  arrays such as
> masked_array to lose its type.  For example, if _wrapit was called for a
> max() function on a masked array, the max returned would be for the
> ndarray's max, not the masked_array's max.
>
> Let me know if this is a non-issue, I just thought I ought to point it out.
>
>
Looks like fromnumeric.py has it's own version of masked arrays. Wasn't
there some talk of removing some of these old compatibility functions?

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100717/a099e74b/attachment.html>


More information about the NumPy-Discussion mailing list