Message381493
>I propose to either a guard to PyType_GetModule() to prevent misuse of the function or to add a variant of the function that prevents misuse.
+1. Looks like check Py_TPFLAGS_BASETYPE in PyType_GetModule() is an easy way:) |
|
Date |
User |
Action |
Args |
2020-11-20 18:25:06 | shihai1991 | set | recipients:
+ shihai1991, vstinner, christian.heimes, petr.viktorin, corona10 |
2020-11-20 18:25:06 | shihai1991 | set | messageid: <1605896706.58.0.651614382754.issue42418@roundup.psfhosted.org> |
2020-11-20 18:25:06 | shihai1991 | link | issue42418 messages |
2020-11-20 18:25:06 | shihai1991 | create | |
|