Message320549
I concur with Tim. Marking the original bug as "won't fix" for the reasons that he listed.
In a separate PR, I'll modify the last line random.choices() to be "return [population[bisect(cum_weights, random() * total, 0, hi)] for i in range(k)]". That will make the function more robust (handling the exotic case with subnormal weights). |
|
Date |
User |
Action |
Args |
2018-06-27 07:07:38 | rhettinger | set | recipients:
+ rhettinger, tim.peters, mark.dickinson, pitrou, vstinner, steven.daprano, r.david.murray, skrah, serhiy.storchaka, Serge Anuchin |
2018-06-27 07:07:38 | rhettinger | set | messageid: <1530083258.71.0.56676864532.issue24567@psf.upfronthosting.co.za> |
2018-06-27 07:07:38 | rhettinger | link | issue24567 messages |
2018-06-27 07:07:38 | rhettinger | create | |
|