Skip to content

PyType_From*: Disallow metaclasses with custom tp_new #123909

Closed

Description

@encukou

Following up after #60074 and #103968:
In 3.14, the deprecation period is over and PyType_From* should fail if the metaclass has custom tp_new. That means the tp_new is no longer silently skipped.

The proper way to instantiate such a metaclass is to call it.

Linked PRs

Activity

  1. self-assigned this
    on Sep 10, 2024
  2. added 4 commits that reference this issue on Sep 11, 2024
  3. added 2 commits that reference this issue on Mar 20, 2025
  4. added a commit that references this issue on Apr 1, 2025
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