[issue42418] PyType_GetModule() should warn/fail when type has Py_TPFLAGS_BASETYPE

Petr Viktorin report at bugs.python.org
Tue Nov 24 08:43:57 EST 2020


Petr Viktorin <encukou at gmail.com> added the comment:

> I missed it when I ported some of my code to heap types and multiphase init.

I guess PyType_GetModule() is not good for that use case.
If your code is open, could you add a link?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42418>
_______________________________________


More information about the Python-bugs-list mailing list