Skip to content

SystemError in class creation in case of a metaclass with a bad __prepare__() method #75769

@orenmn

Description

@orenmn
mannequin
BPO 31588
Nosy @ncoghlan, @ericsnowcurrently, @serhiy-storchaka, @orenmn
PRs
  • bpo-31588: Prevent raising a SystemError in class creation in case of a metaclass with a bad __prepare__() method #3764
  • [3.6] bpo-31588: Validate return value of __prepare__() methods (GH-3764) #3790
  • 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 2017-09-27.16:28:47.445>
    created_at = <Date 2017-09-26.07:38:12.271>
    labels = ['interpreter-core', 'type-bug', '3.7']
    title = 'SystemError in class creation in case of a metaclass with a bad __prepare__() method'
    updated_at = <Date 2017-09-27.16:28:47.445>
    user = 'https://github.com/orenmn'

    bugs.python.org fields:

    activity = <Date 2017-09-27.16:28:47.445>
    actor = 'ncoghlan'
    assignee = 'none'
    closed = True
    closed_date = <Date 2017-09-27.16:28:47.445>
    closer = 'ncoghlan'
    components = ['Interpreter Core']
    creation = <Date 2017-09-26.07:38:12.271>
    creator = 'Oren Milman'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 31588
    keywords = ['patch']
    message_count = 8.0
    messages = ['303019', '303118', '303121', '303122', '303143', '303144', '303146', '303159']
    nosy_count = 4.0
    nosy_names = ['ncoghlan', 'eric.snow', 'serhiy.storchaka', 'Oren Milman']
    pr_nums = ['3764', '3790']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue31588'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions