Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PyType_FromSpec refuses to create classes with tp_new #103968

Closed
Assignees
encukou
Labels
@encukou

Description

@encukou

As reported in#60074, sincePyType_FromMetaclass was added, other functions from thePyType_FromSpec family refuse to create classes whose metaclass has a non-defaulttp_new. IMO this is the correct default behaviour -- we don't have the arguments to calltp_new with, and skipping it may be dangerous.
Nevertheless, it's a backwards-incompatible change. It should only be made after a deprecation period.

I'm working on a fix.

Linked PRs

Metadata

Metadata

Assignees

Labels

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp