Skip to content

Commit 3f20f4a

Browse files
Add tp_static_builtin_index to the docs.
1 parent bc7fa26 commit 3f20f4a

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Doc/c-api/type.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ The following functions and structs are used to create
325325
* :c:member:`~PyTypeObject.tp_cache`
326326
* :c:member:`~PyTypeObject.tp_subclasses`
327327
* :c:member:`~PyTypeObject.tp_weaklist`
328+
* :c:member:`~PyTypeObject.tp_tp_static_builtin_index`
328329
* :c:member:`~PyTypeObject.tp_vectorcall`
329330
* :c:member:`~PyTypeObject.tp_weaklistoffset`
330331
(see :ref:`PyMemberDef <pymemberdef-offsets>`)

Doc/c-api/typeobj.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ Quick Reference
147147
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
148148
| :c:member:`~PyTypeObject.tp_vectorcall` | :c:type:`vectorcallfunc` | | | | | |
149149
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
150+
| [:c:member:`~PyTypeObject.tp_static_builtin_index`] | size_t | | | | |
151+
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
150152

151153
.. [#slots]
152154
A slot name in parentheses indicates it is (effectively) deprecated.
@@ -2028,6 +2030,17 @@ and :c:type:`PyType_Type` effectively act as defaults.)
20282030

20292031
.. versionadded:: 3.9 (the field exists since 3.8 but it's only used since 3.9)
20302032

2033+
.. c:member:: PyObject* PyTypeObject.tp_static_builtin_index
2034+
2035+
A static builtin type's index into the per-interpreter array of type state.
2036+
Internal use only.
2037+
2038+
**Inheritance:**
2039+
2040+
This field is not inherited.
2041+
2042+
.. versionadded:: 3.12
2043+
20312044

20322045
.. _static-types:
20332046

Doc/includes/typestruct.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,6 @@ typedef struct _typeobject {
8080

8181
destructor tp_finalize;
8282
vectorcallfunc tp_vectorcall;
83+
84+
size_t tp_static_builtin_index;
8385
} PyTypeObject;

0 commit comments

Comments
 (0)