Petr Viktorin <encukou at gmail.com> added the comment: Here is a PR for _PyType_GetModuleByDef: https://github.com/python/cpython/pull/22835 ---------- _______________________________________ Python tracker <report at bugs.python.org> <https://bugs.python.org/issue40891> _______________________________________