Author rhettinger
Recipients Serge Anuchin, mark.dickinson, pitrou, r.david.murray, rhettinger, serhiy.storchaka, skrah, steven.daprano, tim.peters, vstinner
Date 2018-06-27.07:07:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:38rhettingersetrecipients: + rhettinger, tim.peters, mark.dickinson, pitrou, vstinner, steven.daprano, r.david.murray, skrah, serhiy.storchaka, Serge Anuchin
2018-06-27 07:07:38rhettingersetmessageid: <>
2018-06-27 07:07:38rhettingerlinkissue24567 messages
2018-06-27 07:07:38rhettingercreate