[issue15544] math.isnan fails with some Decimal NaNs
Steven D'Aprano
report at bugs.python.org
Sun Aug 5 03:02:58 CEST 2012
Steven D'Aprano added the comment:
On 05/08/12 03:45, Mark Dickinson wrote:
> It would make sense to add float.is_infinite and (possibly) float.is_finite
> methods at the same time.
If you don't add is_finite, you know someone is going to express surprise that
it wasn't already done. Just as happened with math.isfinite :)
http://bugs.python.org/issue9165#msg109326
> The second has to do with finding a nice
> type-agnostic way of determing whether something is a NaN---anyone mind if
> I open a separate issue for this?
Please do.
> Two questions: (1) What would you think about raising ValueError
> explicitly for the signaling NaN case [...] (2) Should we apply
> the fix to 2.7 and/or 3.2 as well?
Agree to both. I think this counts as a bug report and not a new feature.
> I'll look at extending Steven's fix to the cdecimal code
Thank you :)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15544>
_______________________________________
More information about the Python-bugs-list
mailing list