Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:
The pitfall of PyType_FromModuleAndSpec() is that it makes types instantiable by default if tp_new is not provided. Created objects can crash when you try to use them because they are not properly initialized. When there was few uses of PyType_FromModuleAndSpec() I fixed them and added tests, but now there are much more types created with PyType_FromModuleAndSpec(). Please check all other uses of PyType_FromModuleAndSpec(), add workarounds and tests. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue1635741> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com