Re: [Numpy-discussion] NotImplemented returns

2010-05-27 Thread josef . pktd
On Thu, May 27, 2010 at 2:34 PM, Charles R Harris wrote: > > > On Thu, May 27, 2010 at 9:59 AM, wrote: >> >> A while ago we had a brief discussion about this. >> >> >> Is this a feature? or should there be a ticket for this >> >> >>> np.sqrt('5') >> NotImplemented >> >>> a = np.sqrt('5') >> >>> a

Re: [Numpy-discussion] NotImplemented returns

2010-05-27 Thread Charles R Harris
On Thu, May 27, 2010 at 9:59 AM, wrote: > A while ago we had a brief discussion about this. > > > Is this a feature? or should there be a ticket for this > > >>> np.sqrt('5') > NotImplemented > >>> a = np.sqrt('5') > >>> a > NotImplemented > >>> type(a) > > > What numpy version? I get In [2]: s

Re: [Numpy-discussion] NotImplemented returns

2010-05-27 Thread josef . pktd
On Thu, May 27, 2010 at 12:57 PM, Pauli Virtanen wrote: > Thu, 27 May 2010 10:21:14 -0600, Charles R Harris wrote: > [clip] >> Maybe an enhancement ticket. The NotImplemented return is appropriate >> for some functions, but for functions with a single argument we should >> probably raise an error.

Re: [Numpy-discussion] NotImplemented returns

2010-05-27 Thread Pauli Virtanen
Thu, 27 May 2010 10:21:14 -0600, Charles R Harris wrote: [clip] > Maybe an enhancement ticket. The NotImplemented return is appropriate > for some functions, but for functions with a single argument we should > probably raise an error. A NotImplemented value leaking to the the user is a bug. The f

Re: [Numpy-discussion] NotImplemented returns

2010-05-27 Thread Charles R Harris
On Thu, May 27, 2010 at 9:59 AM, wrote: > A while ago we had a brief discussion about this. > > > Is this a feature? or should there be a ticket for this > > >>> np.sqrt('5') > NotImplemented > >>> a = np.sqrt('5') > >>> a > NotImplemented > >>> type(a) > > > Maybe an enhancement ticket. The Not

[Numpy-discussion] NotImplemented returns

2010-05-27 Thread josef . pktd
A while ago we had a brief discussion about this. Is this a feature? or should there be a ticket for this >>> np.sqrt('5') NotImplemented >>> a = np.sqrt('5') >>> a NotImplemented >>> type(a) Josef ___ NumPy-Discussion mailing list NumPy-Discussion@