File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,7 @@ The following functions and structs are used to create
325
325
* :c:member: `~PyTypeObject.tp_cache `
326
326
* :c:member: `~PyTypeObject.tp_subclasses `
327
327
* :c:member: `~PyTypeObject.tp_weaklist `
328
+ * :c:member: `~PyTypeObject.tp_tp_static_builtin_index `
328
329
* :c:member: `~PyTypeObject.tp_vectorcall `
329
330
* :c:member: `~PyTypeObject.tp_weaklistoffset `
330
331
(see :ref: `PyMemberDef <pymemberdef-offsets >`)
Original file line number Diff line number Diff line change @@ -147,6 +147,8 @@ Quick Reference
147
147
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
148
148
| :c:member: `~PyTypeObject.tp_vectorcall ` | :c:type: `vectorcallfunc ` | | | | | |
149
149
+------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
150
+ | [:c:member: `~PyTypeObject.tp_static_builtin_index `] | size_t | | | | |
151
+ +------------------------------------------------+-----------------------------------+-------------------+---+---+---+---+
150
152
151
153
.. [#slots ]
152
154
A slot name in parentheses indicates it is (effectively) deprecated.
@@ -2028,6 +2030,17 @@ and :c:type:`PyType_Type` effectively act as defaults.)
2028
2030
2029
2031
.. versionadded :: 3.9 (the field exists since 3.8 but it's only used since 3.9)
2030
2032
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
+
2031
2044
2032
2045
.. _static-types :
2033
2046
Original file line number Diff line number Diff line change @@ -80,4 +80,6 @@ typedef struct _typeobject {
80
80
81
81
destructor tp_finalize ;
82
82
vectorcallfunc tp_vectorcall ;
83
+
84
+ size_t tp_static_builtin_index ;
83
85
} PyTypeObject ;
You can’t perform that action at this time.
0 commit comments