Message325059
| Author |
petr.viktorin |
| Recipients |
Dormouse759, Robin.Schreiber, belopolsky, jcea, loewis, ncoghlan, petr.viktorin, pitrou, serhiy.storchaka |
| Date |
2018年09月11日.20:55:58 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1536699358.22.0.0269046726804.issue15727@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|