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

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

Copy link
Copy link
@serhiy-storchaka

Description

@serhiy-storchaka
Issue body actions
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']

    Reactions are currently unavailable

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesonly security fixes3.11only security fixesonly security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)type-crashA hard crash of the interpreter, possibly with a core dumpA hard crash of the interpreter, possibly with a core dump
      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.