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 http://projects.scipy.o

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 wha

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)

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] > wrote: > > > > > > > The problem is that numpy has a *bug*. I am trying to

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] > 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 > behav

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
> 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 oth

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 > >

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 __r__ method and has __array_priority__ as > * an attribute (signalling it can handl

[Numpy-discussion] Request for clarification from Travis

2008-06-24 Thread Charles R Harris
Hi Travis, Could you expand on your thinking concerning NotImplemented? The relevant code is: /* * FAIL with NotImplemented if the other object has * the __r__ method and has __array_priority__ as * an attribute (signalling it can handle ndarray's) * and is not already an