@@ -480,19 +480,19 @@ The following functions and structs are used to create
480
480
481
481
The following “offset” fields cannot be set using :c:type: `PyType_Slot `:
482
482
483
- * :c:member: `~PyTypeObject.tp_weaklistoffset `
484
- (use :c:macro: `Py_TPFLAGS_MANAGED_WEAKREF ` instead if possible)
485
- * :c:member:`~PyTypeObject.tp_dictoffset`
486
- (use :c:macro: `Py_TPFLAGS_MANAGED_DICT ` instead if possible)
487
- * :c:member:`~PyTypeObject.tp_vectorcall_offset`
488
- (use ``"__vectorcalloffset__" `` in
489
- :ref: `PyMemberDef <pymemberdef-offsets >`)
490
-
491
- If it is not possible to switch to a ``MANAGED`` flag (for example,
492
- for vectorcall or to support Python older than 3.12), specify the
493
- offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
494
- See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
495
- for details.
483
+ * :c:member: `~PyTypeObject.tp_weaklistoffset `
484
+ (use :c:macro: `Py_TPFLAGS_MANAGED_WEAKREF ` instead if possible)
485
+ * :c:member:`~PyTypeObject.tp_dictoffset`
486
+ (use :c:macro: `Py_TPFLAGS_MANAGED_DICT ` instead if possible)
487
+ * :c:member:`~PyTypeObject.tp_vectorcall_offset`
488
+ (use ``"__vectorcalloffset__" `` in
489
+ :ref: `PyMemberDef <pymemberdef-offsets >`)
490
+
491
+ If it is not possible to switch to a ``MANAGED`` flag (for example,
492
+ for vectorcall or to support Python older than 3.12), specify the
493
+ offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
494
+ See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
495
+ for details.
496
496
497
497
The following fields cannot be set at all when creating a heap type:
498
498
@@ -512,14 +512,13 @@ The following functions and structs are used to create
512
512
To avoid issues, use the *bases* argument of
513
513
:c:func:`PyType_FromSpecWithBases` instead.
514
514
515
- .. versionchanged:: 3.9
515
+ .. versionchanged:: 3.9
516
+ Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
516
517
517
- Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
518
-
519
- .. versionchanged:: 3.11
520
- :c:member:`~PyBufferProcs.bf_getbuffer` and
521
- :c:member:`~PyBufferProcs.bf_releasebuffer` are now available
522
- under the :ref:`limited API <limited-c-api>`.
518
+ .. versionchanged:: 3.11
519
+ :c:member:`~PyBufferProcs.bf_getbuffer` and
520
+ :c:member:`~PyBufferProcs.bf_releasebuffer` are now available
521
+ under the :ref:`limited API <limited-c-api>`.
523
522
524
523
.. c:member:: void *pfunc
525
524
0 commit comments