Skip to content

Conversation

rhettinger
Copy link
Contributor

@rhettinger rhettinger commented Jun 27, 2018

Make random.choices() handle subnormal input weights.

https://bugs.python.org/issue24567

@rhettinger rhettinger added type-bug An unexpected behavior, bug, or error needs backport to 3.6 labels Jun 27, 2018
@rhettinger rhettinger self-assigned this Jun 27, 2018
@rhettinger rhettinger merged commit ddf7171 into python:master Jun 27, 2018
@bedevere-bot
Copy link

@rhettinger: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington
Copy link
Contributor

Thanks @rhettinger for the PR 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

@bedevere-bot
Copy link

GH-7955 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 27, 2018
Handle subnormal weights for choices()
(cherry picked from commit ddf7171)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@bedevere-bot
Copy link

GH-7956 is a backport of this pull request to the 3.6 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 27, 2018
Handle subnormal weights for choices()
(cherry picked from commit ddf7171)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
@rhettinger rhettinger deleted the random_subnormal.diff branch June 27, 2018 08:11
rhettinger added a commit that referenced this pull request Jun 27, 2018
Handle subnormal weights for choices()
(cherry picked from commit ddf7171)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
rhettinger added a commit that referenced this pull request Jun 27, 2018
Handle subnormal weights for choices()
(cherry picked from commit ddf7171)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants