Message368768
| Author |
petr.viktorin |
| Recipients |
Dormouse759, miss-islington, ncoghlan, petr.viktorin, scoder, shihai1991, terry.reedy, vstinner |
| Date |
2020年05月13日.08:41:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1589359271.82.0.449645942542.issue38787@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|