[Python-Dev] Why is nan != nan?
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 26 05:35:55 CET 2010
Steven D'Aprano wrote:
> What do we do with Decimal? Aren't we committed to matching the Decimal
> standard,
It's been pointed out that the Decimal standard only defines
some abstract operations, and doesn't mandate that they
be mapped onto any particular language syntax. That gives
us enough flexibility to make == do what we want and still
claim compliance with the standard.
BTW, does IEEE754 give us the same flexibility? If so,
we may not have much of a problem in the first place.
--
Greg
More information about the Python-Dev
mailing list