Author shihai1991
Recipients Dormouse759, miss-islington, ncoghlan, petr.viktorin, scoder, shihai1991, terry.reedy, vstinner
Date 2020-05-13.17:24:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589390645.81.0.357346059747.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).

+1, I didn't notice this detail until I got the error.

> The associated module is not inherited; each class in the MRO can be > defined in a different module.

Thanks, pep have enough info, I need spend sometime to make sure I understand it clearly, Lol~.
History
Date User Action Args
2020-05-13 17:24:05shihai1991setrecipients: + shihai1991, terry.reedy, ncoghlan, scoder, vstinner, petr.viktorin, Dormouse759, miss-islington
2020-05-13 17:24:05shihai1991setmessageid: <1589390645.81.0.357346059747.issue38787@roundup.psfhosted.org>
2020-05-13 17:24:05shihai1991linkissue38787 messages
2020-05-13 17:24:05shihai1991create