[issue41832] PyType_FromSpec() should accept tp_doc=NULL
hai shi
report at bugs.python.org
Wed Nov 4 07:07:31 EST 2020
hai shi <shihai1991 at 126.com> added the comment:
> If you change this, why do it only for tp_doc, but for all the slots? NULL should *always* mean that the slot is set to NULL instead of inherited. (Except maybe in cases where this is dangerous; then it should result in an error?
IMO, it's a proper user case.
>From bpo-26978: "I'll also try making an explicit `{Py_tp_dealloc, NULL}` override the inherited value, as per Serhiy's suggestion."
Petr, do you have a PR about it?
> If you want to only change this for tp_doc, please also update the PyType_Slot documentation to cover the exception.
Copy that, I will update it soon.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41832>
_______________________________________
More information about the Python-bugs-list
mailing list