2008/7/2 Zbyszek Szmek <[EMAIL PROTECTED]>:
>> 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
__add__ methods.

Cheers
Stéfan
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to