STINNER Victor added the comment:
> 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"))
True
----------
nosy: +haypo
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue23185>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com