Message265102
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. |
|
Date |
User |
Action |
Args |
2016-05-07 23:02:44 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, loewis, terry.reedy, amaury.forgeotdarc, pitrou, ned.deily, asvetlov, Robin.Schreiber |
2016-05-07 23:02:44 | serhiy.storchaka | set | messageid: <1462662164.13.0.431474424175.issue23815@psf.upfronthosting.co.za> |
2016-05-07 23:02:44 | serhiy.storchaka | link | issue23815 messages |
2016-05-07 23:02:44 | serhiy.storchaka | create | |
|