[Python-ideas] Disallow orderring comparison to NaN

Alexander Belopolsky alexander.belopolsky at gmail.com
Fri Apr 29 01:26:15 CEST 2011


On Thu, Apr 28, 2011 at 6:10 PM, Guido van Rossum <guido at python.org> wrote:
..
> But isn't a similar change needed for Decimal?

I did not look into this, but decimal contexts allow for more
compliant implementations because you can trap FP exceptions
differently in different contexts.  We don't have this luxury with
floats.



More information about the Python-ideas mailing list