Skip to content

Add Python 2 support for __metaclass__ #2823

Closed
@gvanrossum

Description

@gvanrossum

Now that we have metaclasses, we should support them for Python 2 as well. While in Python 3 the metaclass is specified as a metaclass=M keyword arg in the class heading, for Python 2 the metaclass is given by a __metaclass__ = M assignment in the body of the class.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions