[New-bugs-announce] [issue41618] [C API] How many slots of static types should be exposed in PyType_GetSlot()

hai shi 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
messages: 375808
nosy: petr.viktorin, shihai1991, vstinner
priority: normal
severity: normal
status: open
title: [C API] How many slots of static types should be exposed in PyType_GetSlot()
type: enhancement
versions: Python 3.10

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


More information about the New-bugs-announce mailing list