This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients christian.heimes, gvanrossum, nascheme, noam, rhettinger, tim.peters
Date 2007-12-11.17:51:04
SpamBayes Score 0.1040335
Marked as misclassified No
Message-id <1197395464.92.0.796092631261.issue1580@psf.upfronthosting.co.za>
In-reply-to
Content
> Of course the latter isn't guaranteed to help for 
> non-IEEE-754 platforms -- some platforms don't have
> NaNs at all! 

ISTM, that years of toying with Infs and Nans has not
yielded a portable, workable solution.  I'm concerned
that further efforts will contort and slow-down our
code without benefit.  NaNs in particular are a really
difficult case because our equality testing routines
have a fast path where identity implies equality.  I don't
think NaNs can be correctly implemented without breaking
that fast path which appears throughout the code base
(even inside the code for dictobject.c; otherwise, how
could you lookup a NaN value).

I recommend punting on the subject of NaNs.  Attempting
to "fix" it will necessarily entail introducing a 
number of little atrocities that just aren't worth it.
IMO, Practicality beats purity on this one.

The decimal module provides full support for NaNs.
While it is slow, it may be sufficient for someone who
isn't happy with the way float handles them.
History
Date User Action Args
2007-12-11 17:51:05rhettingersetspambayes_score: 0.104033 -> 0.1040335
recipients: + rhettinger, gvanrossum, tim.peters, nascheme, christian.heimes, noam
2007-12-11 17:51:04rhettingersetspambayes_score: 0.104033 -> 0.104033
messageid: <1197395464.92.0.796092631261.issue1580@psf.upfronthosting.co.za>
2007-12-11 17:51:04rhettingerlinkissue1580 messages
2007-12-11 17:51:04rhettingercreate