Message314870
| 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: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 |
|