Message325059
Converting static types to heap ones is just one of the reasons to use PyType_FromSpec*. Another ones are writing such classes from scratch, and converting pure-Python classes to C. I don't think PyObject_FailingNew is a good default for either of those.
I think Sehriy's solution in bpo-26979 is better: document this, and allow setting a slot to NULL explicitly. |
|
Date |
User |
Action |
Args |
2018-09-11 20:55:58 | petr.viktorin | set | recipients:
+ petr.viktorin, loewis, jcea, ncoghlan, belopolsky, pitrou, serhiy.storchaka, Robin.Schreiber, Dormouse759 |
2018-09-11 20:55:58 | petr.viktorin | set | messageid: <1536699358.22.0.0269046726804.issue15727@psf.upfronthosting.co.za> |
2018-09-11 20:55:58 | petr.viktorin | link | issue15727 messages |
2018-09-11 20:55:58 | petr.viktorin | create | |
|