This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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)
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: <>
2020-08-01 19:36:19rhettingerlinkissue41421 messages
2020-08-01 19:36:19rhettingercreate