On Sun, Sep 30, 2018 at 11:01 AM Steve Barnes <[email protected]>
wrote:
> Adding inf & -inf would be nice but to do so we would need a better name
> than NaNAwareInt.
>
My placeholder name is deliberately awkward. I think it gestures at the
concept for discussion purposes though.
> It would also be nice if Decimal(NaNAwareInt('nan')) = Decimal('NaN'),
> float(NaNAwareInt('nan')) = float('nan'), etc.
This seems like bad behavior given (per IEEE-754 spec):
>>> float('nan') == float('nan')
False
>>> nan = float('nan')
>>> nan == nan
False
--
Keeping medicines from the bloodstreams of the sick; food
from the bellies of the hungry; books from the hands of the
uneducated; technology from the underdeveloped; and putting
advocates of freedom in prisons. Intellectual property is
to the 21st century what the slave trade was to the 16th.
_______________________________________________
Python-ideas mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/