Skip to content

The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping #52975

@stutzbach

Description

@stutzbach
mannequin
BPO 8729
Nosy @rhettinger, @pitrou, @benjaminp
Files
  • mapping.patch: Change Mapping.eq to return NotImplemented if the other type isn't a Mapping
  • eq-test.patch: Add test cases
  • mapping2.patch: Revised patch, with fix and unit tests
  • 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 2010-05-21.20:52:37.002>
    created_at = <Date 2010-05-15.22:08:11.016>
    labels = ['type-bug', 'library']
    title = "The Mapping ABC's __eq__ method should return NotImplemented if the other type is not a Mapping"
    updated_at = <Date 2010-05-21.20:52:37.001>
    user = 'https://bugs.python.org/stutzbach'

    bugs.python.org fields:

    activity = <Date 2010-05-21.20:52:37.001>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-05-21.20:52:37.002>
    closer = 'benjamin.peterson'
    components = ['Library (Lib)']
    creation = <Date 2010-05-15.22:08:11.016>
    creator = 'stutzbach'
    dependencies = []
    files = ['17355', '17392', '17433']
    hgrepos = []
    issue_num = 8729
    keywords = ['patch']
    message_count = 10.0
    messages = ['105833', '105846', '105849', '106000', '106001', '106017', '106107', '106131', '106257', '106264']
    nosy_count = 4.0
    nosy_names = ['rhettinger', 'pitrou', 'benjamin.peterson', 'stutzbach']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'patch review'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue8729'
    versions = ['Python 2.6', 'Python 3.1', 'Python 2.7', 'Python 3.2']

    Metadata

    Metadata

    Assignees

    No one assigned

      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