[Numpy-discussion] NotImplementedType should be an exception

Charles R Harris charlesr.harris@gmail....
Sat Jun 21 01:07:34 CDT 2008


On Fri, Jun 20, 2008 at 11:21 PM, Charles R Harris <
charlesr.harris@gmail.com> wrote:

> Shouldn't this raise an NotImplementedError exception?
>
> In [7]: type(remainder(complex192(1), complex192(1)))
> Out[7]: <type 'NotImplementedType'>
>

I suspect these types should both have Py_TPFLAGS_CHECKTYPES bit set in the
tp_flag so that python will raise a TypeError.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080621/105ae161/attachment.html 


More information about the Numpy-discussion mailing list