@@ -465,19 +465,19 @@ The following functions and structs are used to create
465
465
466
466
The following “offset” fields cannot be set using :c:type: `PyType_Slot `:
467
467
468
- * :c:member: `~PyTypeObject.tp_weaklistoffset `
469
- (use :c:macro: `Py_TPFLAGS_MANAGED_WEAKREF ` instead if possible)
470
- * :c:member:`~PyTypeObject.tp_dictoffset`
471
- (use :c:macro: `Py_TPFLAGS_MANAGED_DICT ` instead if possible)
472
- * :c:member:`~PyTypeObject.tp_vectorcall_offset`
473
- (use ``"__vectorcalloffset__" `` in
474
- :ref: `PyMemberDef <pymemberdef-offsets >`)
475
-
476
- If it is not possible to switch to a ``MANAGED`` flag (for example,
477
- for vectorcall or to support Python older than 3.12), specify the
478
- offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
479
- See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
480
- for details.
468
+ * :c:member: `~PyTypeObject.tp_weaklistoffset `
469
+ (use :c:macro: `Py_TPFLAGS_MANAGED_WEAKREF ` instead if possible)
470
+ * :c:member:`~PyTypeObject.tp_dictoffset`
471
+ (use :c:macro: `Py_TPFLAGS_MANAGED_DICT ` instead if possible)
472
+ * :c:member:`~PyTypeObject.tp_vectorcall_offset`
473
+ (use ``"__vectorcalloffset__" `` in
474
+ :ref: `PyMemberDef <pymemberdef-offsets >`)
475
+
476
+ If it is not possible to switch to a ``MANAGED`` flag (for example,
477
+ for vectorcall or to support Python older than 3.12), specify the
478
+ offset in :c:member:`Py_tp_members <PyTypeObject.tp_members>`.
479
+ See :ref:`PyMemberDef documentation <pymemberdef-offsets>`
480
+ for details.
481
481
482
482
The following fields cannot be set at all when creating a heap type:
483
483
@@ -497,14 +497,13 @@ The following functions and structs are used to create
497
497
To avoid issues, use the *bases* argument of
498
498
:c:func:`PyType_FromSpecWithBases` instead.
499
499
500
- .. versionchanged:: 3.9
500
+ .. versionchanged:: 3.9
501
+ Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
501
502
502
- Slots in :c:type:`PyBufferProcs` may be set in the unlimited API.
503
-
504
- .. versionchanged:: 3.11
505
- :c:member:`~PyBufferProcs.bf_getbuffer` and
506
- :c:member:`~PyBufferProcs.bf_releasebuffer` are now available
507
- under the :ref:`limited API <limited-c-api>`.
503
+ .. versionchanged:: 3.11
504
+ :c:member:`~PyBufferProcs.bf_getbuffer` and
505
+ :c:member:`~PyBufferProcs.bf_releasebuffer` are now available
506
+ under the :ref:`limited API <limited-c-api>`.
508
507
509
508
.. c:member:: void *pfunc
510
509
0 commit comments