Skip to content

Generic.__new__ is too slow #196

@gvanrossum

Description

@gvanrossum

We shouldn't need to slow down the construction of instances of a generic type.

Probably GenericMeta can pre-compute next_in_mro and then just set __new__ of the class to that.

(Though fixing #192 would make this a little more complicated.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions