Message381532
I don't understand this issue. Why would Py_TPFLAGS_BASETYPE make the result of PyType_GetModule() wrong? Is the note in the documentation of PyType_GetModule() not clear?
A type and its subtypes may be defined in different modules; why would it be wrong to ask which module the superclass was defined in?
Note that PyType_GetModule() is needed if users want to implement something like _PyType_GetModuleByDef(). |
|
Date |
User |
Action |
Args |
2020-11-21 09:13:02 | petr.viktorin | set | recipients:
+ petr.viktorin, vstinner, christian.heimes, corona10, shihai1991 |
2020-11-21 09:13:02 | petr.viktorin | set | messageid: <1605949982.31.0.27821233556.issue42418@roundup.psfhosted.org> |
2020-11-21 09:13:02 | petr.viktorin | link | issue42418 messages |
2020-11-21 09:13:02 | petr.viktorin | create | |
|