[Numpy-discussion] NotImplementedType should be an exception
Charles R Harris
charlesr.harris at gmail.com
Sat Jun 21 02:07:34 EDT 2008
On Fri, Jun 20, 2008 at 11:21 PM, Charles R Harris <
charlesr.harris at 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://mail.python.org/pipermail/numpy-discussion/attachments/20080621/105ae161/attachment.html>
More information about the NumPy-Discussion
mailing list