Skip to content

unexpected behaviour of random.choices with zero weights #83062

Description

@izaromanowska
BPO 38881
Nosy @tim-one, @rhettinger, @mdickinson, @tirkarthi, @izaromanowska
PRs
  • bpo-38881: choices() raises ValueError when all weights are zero #17362
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/rhettinger'
    closed_at = <Date 2019-11-23.10:23:11.502>
    created_at = <Date 2019-11-21.17:35:22.751>
    labels = ['type-bug', '3.9', 'docs']
    title = 'unexpected behaviour of random.choices with zero weights'
    updated_at = <Date 2019-11-25.10:40:56.684>
    user = 'https://github.com/izaromanowska'

    bugs.python.org fields:

    activity = <Date 2019-11-25.10:40:56.684>
    actor = 'IRomanowska'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2019-11-23.10:23:11.502>
    closer = 'rhettinger'
    components = ['Documentation']
    creation = <Date 2019-11-21.17:35:22.751>
    creator = 'IRomanowska'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38881
    keywords = ['patch']
    message_count = 12.0
    messages = ['357185', '357242', '357243', '357257', '357259', '357265', '357267', '357358', '357370', '357372', '357373', '357436']
    nosy_count = 5.0
    nosy_names = ['tim.peters', 'rhettinger', 'mark.dickinson', 'xtreak', 'IRomanowska']
    pr_nums = ['17362']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38881'
    versions = ['Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.9 (EOL)end of lifedocsDocumentation in the Doc dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions