Message314870
@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. |
|
Date |
User |
Action |
Args |
2018-04-03 08:50:00 | wolma | set | recipients:
+ wolma, rhettinger, serhiy.storchaka, selik |
2018-04-03 08:50:00 | wolma | set | messageid: <1522745400.3.0.467229070634.issue33203@psf.upfronthosting.co.za> |
2018-04-03 08:50:00 | wolma | link | issue33203 messages |
2018-04-03 08:50:00 | wolma | create | |
|