[Numpy-discussion] isnan bug?
Thu Mar 20 13:31:37 CDT 2008
Chris Withers wrote:
> Hi All,
> I'm faily sure that:
> ...should just return False and not raise an exception.
> Where can I raise a bug to this effect?
I don't see why you consider this a bug. isnan tests whether an
instance of a numeric type is a nan or not; if you feed it something
that is not a numeric type, it should, and does, raise an exception,
just as an exception is raised if you try to add a float to a datetime
object. In both cases, raising TypeError is entirely appropriate.
More information about the Numpy-discussion