Skip to content

During metaclass.__init__, super() of the constructed class does not work #67910

@tecki

Description

@tecki
mannequin
BPO 23722
Nosy @ncoghlan, @larryhastings, @ned-deily, @ericsnowcurrently, @serhiy-storchaka, @tecki, @timgraham, @Vgr255, @miss-islington
PRs
  • bpo-23722: Raise RuntimeError for absent __classcell__. #6931
  • bpo-23722: Emit a RuntimeWarning for absent __classcell__. #6933
  • bpo-23722: Fix docs for future __classcell__ changes. #6999
  • [3.7] bpo-23722: Fix docs for future __classcell__ changes. (GH-6999) #7000
  • [3.6] bpo-23722: Fix docs for future __classcell__ changes. (GH-6999) #7001
  • Files
  • classcell.patch: The patch for the changes described here
  • classcell.patch: the rebased patch
  • issue23722_enhanced_classcell_tests.diff: Rejected idea recorded for design history purposes
  • issue23722_classcell_reference_validation.diff: Revised implementation with stricter self-validation
  • issue23722_documentation_updates.diff: Documentation updates for classcell & PEP 487 hooks
  • issue23722_classcell_reference_validation_v2.diff: Address Serhiy's review comments, includes docs in same patch
  • 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 2018-05-20.06:14:17.161>
    created_at = <Date 2015-03-20.13:44:21.407>
    labels = ['interpreter-core', 'type-bug', '3.8']
    title = 'During metaclass.__init__, super() of the constructed class does not work'
    updated_at = <Date 2018-05-20.06:14:17.160>
    user = 'https://github.com/tecki'

    bugs.python.org fields:

    activity = <Date 2018-05-20.06:14:17.160>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-05-20.06:14:17.161>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2015-03-20.13:44:21.407>
    creator = 'Martin.Teichmann'
    dependencies = []
    files = ['43766', '44533', '45736', '45743', '45744', '45748']
    hgrepos = []
    issue_num = 23722
    keywords = ['patch']
    message_count = 38.0
    messages = ['238672', '238795', '238992', '270642', '270675', '275620', '275652', '275655', '275665', '275697', '275731', '275732', '275733', '282240', '282246', '282248', '282270', '282317', '282318', '282320', '282323', '282324', '282328', '282335', '282336', '282337', '282383', '282387', '282391', '282474', '316900', '316902', '316904', '317153', '317154', '317155', '317156', '317157']
    nosy_count = 10.0
    nosy_names = ['ncoghlan', 'larry', 'ned.deily', 'python-dev', 'eric.snow', 'serhiy.storchaka', 'Martin.Teichmann', 'Tim.Graham', 'abarry', 'miss-islington']
    pr_nums = ['6931', '6933', '6999', '7000', '7001']
    priority = None
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue23722'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (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