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