Petr Viktorin <encu...@gmail.com> added the comment:

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().

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42418>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to