[issue41832] PyType_FromSpec() should accept tp_doc=NULL

Petr Viktorin report at bugs.python.org
Wed Nov 11 12:43:58 EST 2020


Petr Viktorin <encukou at gmail.com> added the comment:

> `May not be NULL` means everthing is possible

No, it does not. It only means a slot's value may not be NULL, which is an important difference between slots and entries in the PyTypeObject structure.

It's OK that it's mentioned elsewhere, but can we please put it back in the docs of PyType_Slot?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41832>
_______________________________________


More information about the Python-bugs-list mailing list