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 <rep...@bugs.python.org>
<http://bugs.python.org/issue22306>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to