Skip to content

__module__ attribute is not set correctly for a class created by direct metaclass call #73055

@ilevkivskyi

Description

@ilevkivskyi
BPO 28869
Nosy @stevendaprano, @serhiy-storchaka, @ilevkivskyi, @Vgr255, @hongweipeng, @alegonz
PRs
  • bpo-28869: Set class module to caller module in ABCMeta.__new__ #14126
  • bpo-28869: Skip one additional frame when type.__new__ is called not directly from type.__call__. #14166
  • bpo-28869: Set up inheritance registry in ABCMeta.__init__. #16613
  • 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 = None
    created_at = <Date 2016-12-04.21:09:34.786>
    labels = ['interpreter-core', '3.8', 'type-bug', '3.7', '3.9']
    title = '__module__ attribute is not set correctly for a class created by direct metaclass call'
    updated_at = <Date 2019-10-13.11:03:48.103>
    user = 'https://github.com/ilevkivskyi'

    bugs.python.org fields:

    activity = <Date 2019-10-13.11:03:48.103>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Interpreter Core']
    creation = <Date 2016-12-04.21:09:34.786>
    creator = 'levkivskyi'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 28869
    keywords = ['patch']
    message_count = 20.0
    messages = ['282363', '282365', '282367', '282369', '282378', '345073', '345226', '345328', '345332', '345770', '345772', '345797', '345889', '345945', '348210', '348234', '348312', '354071', '354263', '354573']
    nosy_count = 6.0
    nosy_names = ['steven.daprano', 'serhiy.storchaka', 'levkivskyi', 'abarry', 'hongweipeng', 'alegonz']
    pr_nums = ['14126', '14166', '16613']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue28869'
    versions = ['Python 3.7', 'Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of life3.8 (EOL)end of life3.9 (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