Skip to content

statistics.harmonic_mean fails to raise error with negative input that follows a 0 #82563

@WarrenWeckesser

Description

@WarrenWeckesser
BPO 38382
Nosy @tim-one, @rhettinger, @mdickinson, @taleinat, @stevendaprano, @gaoxinge, @WarrenWeckesser
PRs
  • bpo-38382: Fix premature return on ZeroDivisionError in statistics.harmonic_mean #16601
  • bpo-38382: Document the early-out behavior for a zero #17037
  • [3.8] bpo-38382: Document the early-out behavior for a zero (GH-17037) #17078
  • 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/stevendaprano'
    closed_at = <Date 2019-11-07.05:58:50.773>
    created_at = <Date 2019-10-06.01:46:18.902>
    labels = ['type-bug', '3.8', '3.9', 'invalid', '3.7', 'library']
    title = 'statistics.harmonic_mean fails to raise error with negative input that follows a 0'
    updated_at = <Date 2019-11-07.05:58:50.772>
    user = 'https://github.com/WarrenWeckesser'

    bugs.python.org fields:

    activity = <Date 2019-11-07.05:58:50.772>
    actor = 'rhettinger'
    assignee = 'steven.daprano'
    closed = True
    closed_date = <Date 2019-11-07.05:58:50.773>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2019-10-06.01:46:18.902>
    creator = 'WarrenWeckesser'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 38382
    keywords = ['patch']
    message_count = 23.0
    messages = ['354028', '354030', '354042', '354050', '354051', '354056', '354058', '354059', '354065', '354241', '354262', '354504', '355687', '355690', '355691', '355692', '355694', '355696', '355705', '355879', '355915', '356170', '356171']
    nosy_count = 7.0
    nosy_names = ['tim.peters', 'rhettinger', 'mark.dickinson', 'taleinat', 'steven.daprano', 'gaoxinge', 'WarrenWeckesser']
    pr_nums = ['16601', '17037', '17078']
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue38382'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of life3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions