Author aldwinaldwin
Recipients Ted Whalen, aldwinaldwin
Date 2019-07-19.03:18:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
This is what happens with your weights:

>>> list(itertools.accumulate(weights))
[1, 2, 1, 2, 3, 3, 4]

using bisect.bisect certain amount of times, will distribute on this:

random numbers between 1 and 2 will go to 1<'b'<2 and not 'd' that is also 1<'d'<2

As discussed in issue31689, if no negative weights should be used, then a ValueError exception should be re-concidered.
Date User Action Args
2019-07-19 03:18:54aldwinaldwinsetrecipients: + aldwinaldwin, Ted Whalen
2019-07-19 03:18:54aldwinaldwinsetmessageid: <>
2019-07-19 03:18:54aldwinaldwinlinkissue37624 messages
2019-07-19 03:18:54aldwinaldwincreate