[docs] [issue26979] The danger of PyType_FromSpec()

Petr Viktorin report at bugs.python.org
Tue Sep 11 17:00:37 EDT 2018


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

I don't think PEP 384 should be updated. It documents the feature as it was added, and shouldn't be used as documentation now.
Instead, Python documentation should be improved to cover all of PEP 389.
I submitted a pull request for that (GH-9154).

For this issue, the fix should be updating C API documentation and, for Pyhon 3.8+, making {*, NULL} slots override the inherited value.

I think the PyType_Spec/PyType_Slot copying should have its own issue.

----------

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


More information about the docs mailing list