Mark Dickinson added the comment:

> Decimal('snan').is_nan()
> just returns true and I am under the impression that IEEE 754 specifies > the 
> same.

Sure, but IEEE 754 also specifies that math.sqrt(<signalling nan>) should 
signal.  Since both math.sqrt and math.isnan are going through __float__, we 
can't keep everyone happy here.

The question for me is really what __float__ should do.  IEEE 754 doesn't help 
here, since it doesn't cover decimal floating-point <-> binary floating-point 
conversions.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15544>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to