[Python-ideas] Infinite in Python (not just in datetime)
Ed Kellett
edk141 at gmail.com
Mon Feb 2 19:22:07 CET 2015
On Mon Feb 02 2015 at 4:52:49 PM Chris Barker <chris.barker at noaa.gov> wrote:
> On Mon, Feb 2, 2015 at 7:27 AM, Thomas Güttler <
> guettliml at thomas-guettler.de> wrote:
>
>> Infinite what?
>>>
>>
>> Integer
>>
>
> Well, inf is supported in floats because it is supported in the native
> machine double.
>
There's also the appeal to mathematics: integers and infinities are
mutually exclusive.
By contrast, floats aren't numbers (by most definitions) to begin with, so
there's no axiomatic basis to worry about breaking.
Ed Kellett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150202/96f06129/attachment.html>
More information about the Python-ideas
mailing list