Petr Viktorin <encu...@gmail.com> added the comment:
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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue15727> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com