This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author petr.viktorin
Recipients christian.heimes, corona10, petr.viktorin, shihai1991, vstinner
Date 2020-11-21.09:13:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1605949982.31.0.27821233556.issue42418@roundup.psfhosted.org>
In-reply-to
Content
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().
History
Date User Action Args
2020-11-21 09:13:02petr.viktorinsetrecipients: + petr.viktorin, vstinner, christian.heimes, corona10, shihai1991
2020-11-21 09:13:02petr.viktorinsetmessageid: <1605949982.31.0.27821233556.issue42418@roundup.psfhosted.org>
2020-11-21 09:13:02petr.viktorinlinkissue42418 messages
2020-11-21 09:13:02petr.viktorincreate