hai shi <shihai1...@126.com> added the comment:
>I propose to either a guard to PyType_GetModule() to prevent misuse of the >function or to add a variant of the function that prevents misuse. +1. Looks like check Py_TPFLAGS_BASETYPE in PyType_GetModule() is an easy way:) ---------- nosy: +shihai1991 _______________________________________ 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