Message382911
>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 :) |
|
| Date |
User |
Action |
Args |
| 2020-12-12 13:41:20 | shihai1991 | set | recipients:
+ shihai1991, petr.viktorin, Thrameos |
| 2020-12-12 13:41:20 | shihai1991 | set | messageid: <1607780480.68.0.592758092794.issue42617@roundup.psfhosted.org> |
| 2020-12-12 13:41:20 | shihai1991 | link | issue42617 messages |
| 2020-12-12 13:41:20 | shihai1991 | create | |
|