This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Jim Fasarakis-Hilliard, amaury.forgeotdarc, christian.heimes, corona10, eric.snow, erlendaasland, isoschiz, koubaa, kylotan, lukasz.langa, miss-islington, orsenthil, pconnell, petr.viktorin, phsilva, python-dev, santoso.wijaya, serhiy.storchaka, shihai1991, tlesher, vstinner, ysj.ray
Date 2020-12-26.10:25:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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.
Date User Action Args
2020-12-26 10:25:42serhiy.storchakasetrecipients: + serhiy.storchaka, amaury.forgeotdarc, orsenthil, kylotan, vstinner, christian.heimes, tlesher, phsilva, petr.viktorin, ysj.ray, santoso.wijaya, lukasz.langa, python-dev, eric.snow, pconnell, isoschiz, Jim Fasarakis-Hilliard, corona10, miss-islington, shihai1991, erlendaasland, koubaa
2020-12-26 10:25:42serhiy.storchakasetmessageid: <>
2020-12-26 10:25:42serhiy.storchakalinkissue1635741 messages
2020-12-26 10:25:41serhiy.storchakacreate