[Numpy-discussion] NotImplemented returns

josef.pktd at gmail.com josef.pktd at gmail.com
Thu May 27 13:13:27 EDT 2010


On Thu, May 27, 2010 at 12:57 PM, Pauli Virtanen <pav at 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 error.
>
> A NotImplemented value leaking to the the user is a bug. The function
> should raise a ValueError instead.
>
> NotImplemented is meant only for use as a placeholder singleton in
> implementation of rich comparison operations etc., and we shouldn't
> introduce any new meanings IMHO.

http://projects.scipy.org/numpy/ticket/1494  with a few examples

I don't know which component

Josef


>
> --
> Pauli Virtanen
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>



More information about the NumPy-Discussion mailing list