[Python-ideas] Equality of same NaN instances?

Alexander Belopolsky alexander.belopolsky at gmail.com
Thu Apr 28 10:43:07 CEST 2011


On Thu, Apr 28, 2011 at 4:08 AM, Carl M. Johnson
<cmjohnson.mailinglist at gmail.com> wrote:
..
> My two cents? Follow what C does/the IEEE spec unless there's a really
> compelling reason to do something else.

One good thing about standards is that there are plenty to choose
from.  IMO, Python's "float" type is much closer to Java's "Double"
than to machine FP types standardized by IEEE 754.

If nothing else, annual reoccurrence of long threads on this topic is
a reason enough to reconsider which standard to follow.



More information about the Python-ideas mailing list