[issue32978] Issues with reading large float values in AIFC files

Serhiy Storchaka report at bugs.python.org
Thu Mar 1 14:01:43 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

I'm fine with an OverflowError, but it looks inconsistent to me that for some huge values an OverflowError is not raised, but aifc._HUGE_VAL is returned instead. And I think that using math.ldexp() can be more preferable that pow(2.0, ...), especially for exponent around sys.float_info.max_exp and sys.float_info.min_exp.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32978>
_______________________________________


More information about the Python-bugs-list mailing list