Re: [Numpy-discussion] Request for clarification from Travis

2008-06-26 Thread Travis E. Oliphant
Yes, but it is directed at the interpreter, which will raise a TypeError if needed. But the interpreter doesn't know that some generic function might return NotImplemented and wouldn't know what to do if it did. What the user should see when they call something like right_shift(a,b) and

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-26 Thread Charles R Harris
Hi Travis, On Thu, Jun 26, 2008 at 1:50 AM, Travis E. Oliphant [EMAIL PROTECTED] wrote: Yes, but it is directed at the interpreter, which will raise a TypeError if needed. But the interpreter doesn't know that some generic function might return NotImplemented and wouldn't know what to

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-26 Thread Travis E. Oliphant
So it has a numeric value? Yes, it's just a floating point number. It's not a very elegant thing, but it does allow some ability to specify an ordering. -Travis ___ Numpy-discussion mailing list Numpy-discussion@scipy.org

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-24 Thread Travis E. Oliphant
Charles R Harris wrote: Hi Travis, Could you expand on your thinking concerning NotImplemented? The relevant code is: /* * FAIL with NotImplemented if the other object has * the __rop__ method and has __array_priority__ as * an attribute (signalling it can handle

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-24 Thread Charles R Harris
On Tue, Jun 24, 2008 at 12:46 PM, Travis E. Oliphant [EMAIL PROTECTED] wrote: Charles R Harris wrote: Hi Travis, Could you expand on your thinking concerning NotImplemented? The relevant code is: /* * FAIL with NotImplemented if the other object has * the __rop__

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-24 Thread Travis E. Oliphant
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

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-24 Thread Charles R Harris
On Tue, Jun 24, 2008 at 1:41 PM, Travis E. Oliphant [EMAIL PROTECTED] 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

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-24 Thread Travis E. Oliphant
Charles R Harris wrote: On Tue, Jun 24, 2008 at 1:41 PM, Travis E. Oliphant [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 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

Re: [Numpy-discussion] Request for clarification from Travis

2008-06-24 Thread Charles R Harris
On Tue, Jun 24, 2008 at 8:40 PM, Travis E. Oliphant [EMAIL PROTECTED] wrote: Charles R Harris wrote: On Tue, Jun 24, 2008 at 1:41 PM, Travis E. Oliphant [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The problem is that numpy has a *bug*. I am trying to fix it and I