Skip to content

PyType_From*: Disallow metaclasses with custom tp_new #123909

Closed
@encukou

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions