[New-bugs-announce] [issue41618] [C API] How many slots of static types should be exposed in PyType_GetSlot()
report at bugs.python.org
Sun Aug 23 04:48:18 EDT 2020
New submission from hai shi <shihai1991 at 126.com>:
In order to resolve bpo41073, we want to extend `PyType_GetSlot()` to accept static types. But there have another question we should be considered: How many slots should be exposed in `PyType_GetSlot()`.
petr's opinion from PR-21931:I would not want to expose the Py_tp_as_* slots at all; their contents are covered in other slots that should be used instead. And slots like Py_tp_version_tag are specific to CPython; I don't think they should be exposed in the general C API.
components: C API
nosy: petr.viktorin, shihai1991, vstinner
title: [C API] How many slots of static types should be exposed in PyType_GetSlot()
versions: Python 3.10
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce