[Numpy-discussion] Re: ndarray.fill and ma.array.filled
Sasha
ndarray at mac.com
Fri Apr 7 18:56:01 EDT 2006
On 4/7/06, Tim Hochberg <tim.hochberg at cox.net> wrote:
> [...]
> Still it would be nice to have asanyarray pass masked arrays through
> somehow. I haven't thought this through very well, but I wonder if it
> would make sense for asanyarray to pass any object that supplies
> __array__. I'm leary of special casing asanyarray just for MA; somehow
> that seems the wrong approach.
One possiblility is to make asanyarray pass through objects that have
__array_wrap__ attribute.
More information about the NumPy-Discussion
mailing list