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 vstinner
Recipients ethan.furman, vstinner
Date 2015-01-07.16:42:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>   Do we add a math.neginf, or somesuch, for float('-inf')?  Or just use -math.inf?

I would prefer to only add inf.

It looks like float("-inf") and -float("inf") have exactly the same IEEE 754 representation (at least on my x86_64 CPU):

>>> struct.pack("d", float("-inf")) == struct.pack("d", -float("inf"))
Date User Action Args
2015-01-07 16:42:16vstinnersetrecipients: + vstinner, ethan.furman
2015-01-07 16:42:15vstinnersetmessageid: <>
2015-01-07 16:42:15vstinnerlinkissue23185 messages
2015-01-07 16:42:15vstinnercreate