[Python-Dev] Mixing float and Decimal -- thread reboot
Guido van Rossum
guido at python.org
Wed Mar 24 19:36:41 CET 2010
On Wed, Mar 24, 2010 at 11:26 AM, Alexander Belopolsky
<alexander.belopolsky at gmail.com> wrote:
> I wonder why Python did not follow Java model where Float NaN objects
> unlike raw float NaNs compare equal to themselves. One reason may
> be that Python does not have raw floats, but if someone needs IEEE 754
> NaNs, one can use numpy scalars or add arithmetics to ctypes numerical
> types.
Probably because we were blindly following the IEEE standard without
understanding it in every detail.
--
--Guido van Rossum (python.org/~guido)
More information about the Python-Dev
mailing list