Message91445
+inf == +inf, and -inf == -inf, are required by the 754 standard.
However, +inf - +inf, and -inf - -inf, are required (by the same
standard) to signal invalid operation and, if that signal is masked (as
it is in Python), to return a NaN. Then NaN == x is false for any value
of x (including a NaN).
OTOH, +inf != -inf, +inf - -inf == +inf, and -inf - +inf == -inf.
Current versions of Python implement all of that. |
|
Date |
User |
Action |
Args |
2009-08-10 14:06:05 | tim.peters | set | recipients:
+ tim.peters, Cyborg16 |
2009-08-10 14:06:05 | tim.peters | set | messageid: <1249913165.83.0.95815586876.issue6675@psf.upfronthosting.co.za> |
2009-08-10 14:06:04 | tim.peters | link | issue6675 messages |
2009-08-10 14:06:04 | tim.peters | create | |
|