hai shi <shihai1...@126.com> added the comment:
> 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~. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38787> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com