Author rhettinger
Recipients David MacIver, mark.dickinson, rhettinger, serhiy.storchaka, tim.peters
Date 2020-08-01.19:36:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1596310579.47.0.743107420758.issue41421@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2020-08-01 19:36:19rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, serhiy.storchaka, David MacIver
2020-08-01 19:36:19rhettingersetmessageid: <1596310579.47.0.743107420758.issue41421@roundup.psfhosted.org>
2020-08-01 19:36:19rhettingerlinkissue41421 messages
2020-08-01 19:36:19rhettingercreate