[Numpy-discussion] Request for clarification from Travis

Travis E. Oliphant oliphant at enthought.com
Tue Jun 24 22:40:32 EDT 2008


Charles R Harris wrote:
>
>
> On Tue, Jun 24, 2008 at 1:41 PM, Travis E. Oliphant 
> <oliphant at enthought.com <mailto:oliphant at enthought.com>> wrote:
>
>
>     > The problem is that numpy has a *bug*. I am trying to fix it and I
>     > want your help figuring out how to do so while preserving the
>     behavior
>     > you had in mind. So if you could point out specific cases you were
>     > thinking of it would help me with this.
>     This is a hack to support matrices and other subclasses of ndarray
>     like
>     masked arrays.
>
>
> That's what I was thinking. Do you have a test case? One that failed 
> without the NotImplemented return would be very helpful.
There should be some in the test suite, but I'm not sure.  Perhaps the 
masked array test suite also has test cases.

The NotImplemented is being returned so that the other operation will 
try and use it if it can. 

-Travis




More information about the NumPy-Discussion mailing list