Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue32978>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to