homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients mark.dickinson, pitrou, skrah, steven.daprano
Date 2012年08月03日.19:49:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1344023218.3377.10.camel@localhost.localdomain>
In-reply-to <1344023256.24.0.235062758077.issue15544@psf.upfronthosting.co.za>
Content
> > Why not add a is_nan() method to float numbers instead?
> 
> Do you mean replacing math.isnan(x) by x.is_nan() to avoid the issue
> altogether? I'm not sure that's possible given that math just wraps
> the C library.
Yup. By calling x.is_nan() you would by construction get an
implementation that's correct for x's type. If x is a float, it would
obviously re-use math.isnan() (or have a similar implementation).
History
Date User Action Args
2012年08月03日 19:49:31pitrousetrecipients: + pitrou, mark.dickinson, steven.daprano, skrah
2012年08月03日 19:49:31pitroulinkissue15544 messages
2012年08月03日 19:49:30pitroucreate

AltStyle によって変換されたページ (->オリジナル) /