[Numpy-discussion] NotImplemented returns

Charles R Harris charlesr.harris at gmail.com
Thu May 27 12:21:14 EDT 2010


On Thu, May 27, 2010 at 9:59 AM, <josef.pktd at 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 enhancement ticket. The NotImplemented return is appropriate for
some functions, but for functions with a single argument we should probably
raise an error.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100527/91eb3f7c/attachment.html>


More information about the NumPy-Discussion mailing list