Author serhiy.storchaka
Recipients Robin.Schreiber, amaury.forgeotdarc, asvetlov, loewis, ned.deily, pitrou, serhiy.storchaka, terry.reedy
Date 2016-05-07.23:02:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1462662164.13.0.431474424175.issue23815@psf.upfronthosting.co.za>
In-reply-to
Content
I called the fix a workaround because other solution may be to make PyType_FromSpec() not setting tp_new in such cases. I expect that this is common mistake when convert a static class to a heap class with PyType_FromSpec(). At least we should add warnings in C API documentation and PEP 384. Or change the behavior of PyType_FromSpec() if it is appropriate. But this is different issue. If PyType_FromSpec() will be changed, proposed fix can be reverted.
History
Date User Action Args
2016-05-07 23:02:44serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, terry.reedy, amaury.forgeotdarc, pitrou, ned.deily, asvetlov, Robin.Schreiber
2016-05-07 23:02:44serhiy.storchakasetmessageid: <1462662164.13.0.431474424175.issue23815@psf.upfronthosting.co.za>
2016-05-07 23:02:44serhiy.storchakalinkissue23815 messages
2016-05-07 23:02:44serhiy.storchakacreate