[issue22306] Inconsistent division by 0 behaviour in decimal module
Stefan Krah
report at bugs.python.org
Sat Aug 30 13:19:28 CEST 2014
Stefan Krah added the comment:
According to IEEE 754-2008 binary floats should use the same exceptions
in this case.
7.2 Invalid operation
...
e) division: division(0, 0) or division(∞, ∞)
7.3 Division by zero
The divideByZero exception shall be signaled if and only if an
exact infinite result is defined for an operation on finite
operands.
But the Python binary float implementation is a lot older than the 2008
standard.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22306>
_______________________________________
More information about the Python-bugs-list
mailing list