Cyker Way <cyker...@gmail.com> added the comment:

IEEE 754, 7.4 Overflow:

>   The overflow exception shall be signaled if and only if the destination 
> format’s largest finite number is exceeded in magnitude by what would have 
> been the rounded floating-point result (see 4) were the exponent range 
> unbounded...

Were this the basis of the float implementation, not raising an overflow 
exception seems to be the correct behavior? Then this is not a bug, but the 
python float doc might better say "If the *rounded* argument is outside..."

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46173>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to