Skip to content

float compared to decimal is silently incorrect. #46783

@jdunck

Description

@jdunck
mannequin
BPO 2531
Nosy @rhettinger, @facundobatista, @mdickinson, @skrah
Files
  • decimal.patch: always raise exception if 'other' can't be converted
  • float_decimal_comparisons.patch
  • issue2531.patch
  • 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/mdickinson'
    closed_at = <Date 2010-04-03.11:45:02.858>
    created_at = <Date 2008-04-01.22:11:36.754>
    labels = ['type-bug', 'library']
    title = 'float compared to decimal is silently incorrect.'
    updated_at = <Date 2010-04-03.11:45:02.857>
    user = 'https://bugs.python.org/jdunck'

    bugs.python.org fields:

    activity = <Date 2010-04-03.11:45:02.857>
    actor = 'mark.dickinson'
    assignee = 'mark.dickinson'
    closed = True
    closed_date = <Date 2010-04-03.11:45:02.858>
    closer = 'mark.dickinson'
    components = ['Library (Lib)']
    creation = <Date 2008-04-01.22:11:36.754>
    creator = 'jdunck'
    dependencies = []
    files = ['9922', '13389', '16544']
    hgrepos = []
    issue_num = 2531
    keywords = ['patch']
    message_count = 35.0
    messages = ['64827', '64855', '83691', '83694', '83816', '83818', '83935', '83939', '83940', '83941', '83942', '83944', '83948', '83950', '83951', '83952', '84433', '85099', '86053', '86058', '86059', '86061', '86123', '86438', '86439', '95263', '97891', '97935', '98215', '98217', '98218', '101053', '101231', '102147', '102242']
    nosy_count = 9.0
    nosy_names = ['rhettinger', 'facundobatista', 'mark.dickinson', 'jdunck', 'lorg', 'skrah', 'adamtj', 'bertchughes', 'bas']
    pr_nums = []
    priority = 'high'
    resolution = 'fixed'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2531'
    versions = ['Python 3.2']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard 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