Raymond Hettinger <[email protected]> added the comment:
How about this wording?
If alpha is smaller than 0.1, an occasional OverflowError can
arise when the variate exceeds the range of Python float.
I like using 0.1 because it's easy and gives us some wiggle room. The actual
cutoff is lower:
>>> alpha = 0.05079
>>> sys.float_info.epsilon ** (-1.0 / alpha)
>>> alpha = 0.05078
>>> sys.float_info.epsilon ** (-1.0 / alpha)
Traceback (most recent call last):
File "<pyshell#48>", line 1, in <module>
sys.float_info.epsilon ** (-1.0 / alpha)
1.590779741838475e+308
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41421>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com