[issue42035] [C API] PyType_GetSlot cannot get tp_name

Petr Viktorin report at bugs.python.org
Tue Oct 20 04:20:20 EDT 2020


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

The slots are originally intended for defining types (PyType_FromSpec); PyType_GetSlot is not as useful as it could be.
tp_name can be exposed, but it needs to also be handled properly PyType_FromSpec -- e.g. raise an error.

----------

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


More information about the Python-bugs-list mailing list