Skip to content

Clarify handling of infinity and nan in random.choices #85939

Closed
@cool-RR

Description

@cool-RR
mannequin
BPO 41773
Nosy @rhettinger, @cool-RR
PRs
  • bpo-41773: random.choices doesn't support non-finite weights #22441
  • 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 = None
    closed_at = <Date 2020-09-29.01:33:05.699>
    created_at = <Date 2020-09-12.15:31:17.870>
    labels = ['type-feature', 'library', '3.10']
    title = 'Clarify handling of infinity and nan in random.choices'
    updated_at = <Date 2020-09-29.01:33:05.698>
    user = 'https://github.com/cool-RR'

    bugs.python.org fields:

    activity = <Date 2020-09-29.01:33:05.698>
    actor = 'rhettinger'
    assignee = 'none'
    closed = True
    closed_date = <Date 2020-09-29.01:33:05.699>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2020-09-12.15:31:17.870>
    creator = 'cool-RR'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41773
    keywords = ['patch']
    message_count = 13.0
    messages = ['376802', '376812', '376816', '376821', '376827', '376828', '376829', '376831', '376832', '377618', '377619', '377650', '377651']
    nosy_count = 2.0
    nosy_names = ['rhettinger', 'cool-RR']
    pr_nums = ['22441']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue41773'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesstdlibPython modules in the Lib dirtype-featureA feature request or enhancement

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions