[New-bugs-announce] [issue38432] ZeroDivisionError when inf is expected
Behzad Seyfi
report at bugs.python.org
Thu Oct 10 12:01:41 EDT 2019
New submission from Behzad Seyfi <seyfibeh at gmail.com>:
>>> 1/1e-323
inf
>>> 1/1e-324
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: float division by zero
in a 1/x fraction, up to x = 1e-324 it is inf but when x = 1e-325 or little it throws ZeroDivisionError. It is not acceptable and accountable behaviour for inf definition.
----------
components: Interpreter Core
messages: 354391
nosy: Behzad Seyfi
priority: normal
severity: normal
status: open
title: ZeroDivisionError when inf is expected
type: behavior
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38432>
_______________________________________
More information about the New-bugs-announce
mailing list