Skip to content

Discrepancy between isinstance() and issubclass() for union types #88772

@serhiy-storchaka

Description

@serhiy-storchaka
BPO 44606
Nosy @gvanrossum, @serhiy-storchaka, @miss-islington, @Fidget-Spinner
PRs
  • bpo-44606: Fix __instancecheck__ and __subclasscheck__ for the union type. #27120
  • [3.10] bpo-44606: Fix __instancecheck__ and __subclasscheck__ for the union type. (GH-27120) #27132
  • 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 2021-07-14.05:21:16.922>
    created_at = <Date 2021-07-12.05:33:29.993>
    labels = ['interpreter-core', '3.10', 'type-crash', '3.11']
    title = 'Discrepancy between isinstance() and issubclass() for union types'
    updated_at = <Date 2021-07-14.05:21:16.921>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2021-07-14.05:21:16.921>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-07-14.05:21:16.922>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2021-07-12.05:33:29.993>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44606
    keywords = ['patch']
    message_count = 11.0
    messages = ['397281', '397355', '397385', '397389', '397405', '397417', '397430', '397431', '397432', '397463', '397464']
    nosy_count = 4.0
    nosy_names = ['gvanrossum', 'serhiy.storchaka', 'miss-islington', 'kj']
    pr_nums = ['27120', '27132']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'crash'
    url = 'https://bugs.python.org/issue44606'
    versions = ['Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.11only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dump

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions