[Numpy-discussion] Should we fix Ticket #709?
Stéfan van der Walt
Wed Jul 2 15:55:12 CDT 2008
2008/7/2 Zbyszek Szmek <firstname.lastname@example.org>:
>> That's Ticket #709 <http://projects.scipy.org/scipy/numpy/ticket/709>:
>> > I'm faily sure that:
>> > numpy.isnan(datetime.datetime.now()
>> > ...should just return False and not raise an exception.
> IMHO numpy.isnan() makes no sense for non-numerical types.
I agree with Chuck's rationale [if someone asks me whether a peanut
butter sandwhich is a Koala bear, then I'd say no, without trying to
cast the sandwhich to a mammal], and it seems that other ufuncs try to
be general this way, e.g. np.add handles arbitrary classes with
More information about the Numpy-discussion