[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) type 'NotImplementedType' Josef ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] NotImplemented returns

2010-05-27 Thread Charles R Harris
On Thu, May 27, 2010 at 9:59 AM, josef.p...@gmail.com 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) type 'NotImplementedType' Maybe an

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

Re: [Numpy-discussion] NotImplemented returns

2010-05-27 Thread josef . pktd
On Thu, May 27, 2010 at 12:57 PM, Pauli Virtanen p...@iki.fi 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

Re: [Numpy-discussion] NotImplemented returns

2010-05-27 Thread Charles R Harris
On Thu, May 27, 2010 at 9:59 AM, josef.p...@gmail.com 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) type 'NotImplementedType' What numpy

Re: [Numpy-discussion] NotImplemented returns

2010-05-27 Thread josef . pktd
On Thu, May 27, 2010 at 2:34 PM, Charles R Harris charlesr.har...@gmail.com wrote: On Thu, May 27, 2010 at 9:59 AM, josef.p...@gmail.com 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 =