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 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.
History
Date User Action Args
2018-09-11 20:55:58petr.viktorinsetrecipients: + petr.viktorin, loewis, jcea, ncoghlan, belopolsky, pitrou, serhiy.storchaka, Robin.Schreiber, Dormouse759
2018-09-11 20:55:58petr.viktorinsetmessageid: <1536699358.22.0.0269046726804.issue15727@psf.upfronthosting.co.za>
2018-09-11 20:55:58petr.viktorinlinkissue15727 messages
2018-09-11 20:55:58petr.viktorincreate