Author wolma
Recipients rhettinger, selik, serhiy.storchaka, wolma
Date 2018-04-03.08:50:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522745400.3.0.467229070634.issue33203@psf.upfronthosting.co.za>
In-reply-to
Content
@selik: it's true _randbelow doesn't work for negative numbers, but the difference is that both branches are affected, the docstring does not make any guarantees about it, and no public part of the random module is affected by this behavior. In addition, "fixing" _randbelow for negative input cannot be done without impacting performance of several public methods of random.Random so I don't think this should be done.
History
Date User Action Args
2018-04-03 08:50:00wolmasetrecipients: + wolma, rhettinger, serhiy.storchaka, selik
2018-04-03 08:50:00wolmasetmessageid: <1522745400.3.0.467229070634.issue33203@psf.upfronthosting.co.za>
2018-04-03 08:50:00wolmalinkissue33203 messages
2018-04-03 08:50:00wolmacreate