➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author shihai1991
Recipients Thrameos, petr.viktorin, shihai1991
Date 2020-12-12.13:41:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1607780480.68.0.592758092794.issue42617@roundup.psfhosted.org>
In-reply-to
Content
>This code could be made much safer if there were a PyType_FromSpecWithBasesMeta which used the meta class to allocate the memory

IMHO, `PyType_FromSpecWithBases` is a atomic API of `TypeObject`.
Adding a class as a param will result in `PyType_FromSpecWithBases` will be complicated(the logic of this function depends on the children's tp_alloc sometimes).

I add pter in this bpo, maybe he have some better ideas :)
History
Date User Action Args
2020-12-12 13:41:20shihai1991setrecipients: + shihai1991, petr.viktorin, Thrameos
2020-12-12 13:41:20shihai1991setmessageid: <1607780480.68.0.592758092794.issue42617@roundup.psfhosted.org>
2020-12-12 13:41:20shihai1991linkissue42617 messages
2020-12-12 13:41:20shihai1991create