Message368768
I guess I'll need to clarify the documentation here.
Call `PyType_GetModule` on the *defining class*, not on type(self). See the PEP for details.
The associated module is not inherited; each class in the MRO can be defined in a different module. |
|
Date |
User |
Action |
Args |
2020-05-13 08:41:11 | petr.viktorin | set | recipients:
+ petr.viktorin, terry.reedy, ncoghlan, scoder, vstinner, Dormouse759, miss-islington, shihai1991 |
2020-05-13 08:41:11 | petr.viktorin | set | messageid: <1589359271.82.0.449645942542.issue38787@roundup.psfhosted.org> |
2020-05-13 08:41:11 | petr.viktorin | link | issue38787 messages |
2020-05-13 08:41:11 | petr.viktorin | create | |
|