Skip to content

2to3 fails for inner __metaclass__ class definition #55265

Closed

Description

@nw
mannequin
BPO 11056
Nosy @benjaminp
Superseder
  • bpo-45544: Close 2to3 issues and list them here
  • Files
  • test.py: example
  • fix.patch: possible fix
  • 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 = 'https://github.com/benjaminp'
    closed_at = <Date 2021-10-20.23:01:46.927>
    created_at = <Date 2011-01-29.10:07:25.377>
    labels = ['expert-2to3']
    title = '2to3 fails for inner __metaclass__ class definition'
    updated_at = <Date 2021-10-20.23:01:46.926>
    user = 'https://bugs.python.org/nw'

    bugs.python.org fields:

    activity = <Date 2021-10-20.23:01:46.926>
    actor = 'iritkatriel'
    assignee = 'benjamin.peterson'
    closed = True
    closed_date = <Date 2021-10-20.23:01:46.927>
    closer = 'iritkatriel'
    components = ['2to3 (2.x to 3.x conversion tool)']
    creation = <Date 2011-01-29.10:07:25.377>
    creator = 'nw'
    dependencies = []
    files = ['20598', '20607']
    hgrepos = []
    issue_num = 11056
    keywords = ['patch']
    message_count = 2.0
    messages = ['127394', '220757']
    nosy_count = 2.0
    nosy_names = ['benjamin.peterson', 'nw']
    pr_nums = []
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = '45544'
    type = None
    url = 'https://bugs.python.org/issue11056'
    versions = []

    Activity

    1. nw commented on Jan 29, 2011

      nwmannequin
      MannequinAuthor

      The attached code is not converted properly. No warning either.

      Eventually it may be a good idea to reintroduce the old more versatile method.

    2. BreamoreBoy commented on Jun 16, 2014

      BreamoreBoymannequin
      Mannequin

      @benjamin what do you think of the proposed fix?

    3. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions