Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

__eq__ / __hash__ check doesn't take inheritance into account #46488

Copy link
Copy link

Description

@jek
mannequin
Issue body actions
BPO 2235
Nosy @gvanrossum, @warsaw, @rhettinger, @amauryfa, @ncoghlan, @benjaminp, @glyph
Files
  • inherit_hash.patch: restore previous behavior of hash inheritance
  • inherit_hash2.patch
  • inherit_hash3.patch
  • issue2235_fix_hash_inheritance.diff: Patch to allow classes to explicitly block inheritance of tp_hash
  • issue2235_fix_hash_inheritance_with_function_ptr.diff: Block inheritance with PyObject_HashNotImplemented
  • 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/ncoghlan'
    closed_at = <Date 2008-08-31.13:22:05.534>
    created_at = <Date 2008-03-04.19:49:23.717>
    labels = ['interpreter-core', 'type-bug']
    title = "__eq__ / __hash__ check doesn't take inheritance into account"
    updated_at = <Date 2008-08-31.13:22:05.533>
    user = 'https://bugs.python.org/jek'

    bugs.python.org fields:

    activity = <Date 2008-08-31.13:22:05.533>
    actor = 'ncoghlan'
    assignee = 'ncoghlan'
    closed = True
    closed_date = <Date 2008-08-31.13:22:05.534>
    closer = 'ncoghlan'
    components = ['Interpreter Core']
    creation = <Date 2008-03-04.19:49:23.717>
    creator = 'jek'
    dependencies = []
    files = ['9607', '9608', '10002', '10773', '10827']
    hgrepos = []
    issue_num = 2235
    keywords = ['patch']
    message_count = 37.0
    messages = ['63258', '63263', '63264', '63265', '63269', '63270', '63271', '63272', '65297', '65298', '65299', '65329', '66399', '68792', '68795', '68828', '68839', '68866', '68937', '68948', '68949', '69096', '69101', '69129', '69137', '69190', '69324', '69325', '69691', '70748', '70777', '71021', '71022', '71223', '71325', '72114', '72207']
    nosy_count = 10.0
    nosy_names = ['gvanrossum', 'barry', 'rhettinger', 'amaury.forgeotdarc', 'ncoghlan', 'schmir', 'jek', 'benjamin.peterson', 'eikeon', 'glyph']
    pr_nums = []
    priority = 'critical'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue2235'
    versions = ['Python 2.6']

    Reactions are currently unavailable

    Metadata

    Metadata

    Assignees

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.