diff options
Diffstat (limited to 'Doc/c-api/type.rst')
-rw-r--r-- | Doc/c-api/type.rst | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Doc/c-api/type.rst b/Doc/c-api/type.rst index fb38935..89cd743 100644 --- a/Doc/c-api/type.rst +++ b/Doc/c-api/type.rst @@ -349,6 +349,15 @@ The following functions and structs are used to create :c:member:`~PyTypeObject.tp_new` is deprecated and in Python 3.14+ it will be no longer allowed. +.. raw:: html + + <!-- Keep old URL fragments working (see gh-97908) --> + <span id='c.PyType_Spec.PyType_Spec.name'></span> + <span id='c.PyType_Spec.PyType_Spec.basicsize'></span> + <span id='c.PyType_Spec.PyType_Spec.itemsize'></span> + <span id='c.PyType_Spec.PyType_Spec.flags'></span> + <span id='c.PyType_Spec.PyType_Spec.slots'></span> + .. c:type:: PyType_Spec Structure defining a type's behavior. @@ -410,12 +419,18 @@ The following functions and structs are used to create Each slot ID should be specified at most once. +.. raw:: html + + <!-- Keep old URL fragments working (see gh-97908) --> + <span id='c.PyType_Slot.PyType_Slot.slot'></span> + <span id='c.PyType_Slot.PyType_Slot.pfunc'></span> + .. c:type:: PyType_Slot Structure defining optional functionality of a type, containing a slot ID and a value pointer. - .. c:member:: int PyType_Slot.slot + .. c:member:: int slot A slot ID. @@ -459,7 +474,7 @@ The following functions and structs are used to create :c:member:`~PyBufferProcs.bf_releasebuffer` are now available under the limited API. - .. c:member:: void *PyType_Slot.pfunc + .. c:member:: void *pfunc The desired value of the slot. In most cases, this is a pointer to a function. |