File tree Expand file tree Collapse file tree 3 files changed +27
-7
lines changed Expand file tree Collapse file tree 3 files changed +27
-7
lines changed Original file line number Diff line number Diff line change @@ -272,12 +272,6 @@ The following functions and structs are used to create
272
272
* :c:member:`~PyTypeObject.tp_vectorcall_offset`
273
273
(see :ref: `PyMemberDef <pymemberdef-offsets >`)
274
274
275
- The following fields cannot be set using :c:type:`PyType_Spec` and
276
- :c:type:`PyType_Slot` under the limited API:
277
-
278
- * :c:member:`~PyBufferProcs.bf_getbuffer`
279
- * :c:member:`~PyBufferProcs.bf_releasebuffer`
280
-
281
275
Setting :c:data:`Py_tp_bases` or :c:data:`Py_tp_base` may be
282
276
problematic on some platforms.
283
277
To avoid issues, use the *bases* argument of
@@ -287,6 +281,11 @@ The following functions and structs are used to create
287
281
288
282
Slots in :c:type:`PyBufferProcs` in may be set in the unlimited API.
289
283
284
+ .. versionchanged:: 3.11
285
+ :c:member:`~PyBufferProcs.bf_getbuffer` and
286
+ :c:member:`~PyBufferProcs.bf_releasebuffer` are now available
287
+ under limited API.
288
+
290
289
.. c:member:: void *PyType_Slot.pfunc
291
290
292
291
The desired value of the slot. In most cases, this is a pointer
Original file line number Diff line number Diff line change @@ -657,6 +657,26 @@ New Features
657
657
:c:macro: `PY_VERSION_HEX `.
658
658
(Contributed by Gabriele N. Tornetta in :issue: `43931 `.)
659
659
660
+ * :c:type: `Py_buffer ` and APIs are now part of the limited API and the stable
661
+ ABI:
662
+
663
+ * :c:func: `PyObject_CheckBuffer `
664
+ * :c:func: `PyObject_GetBuffer `
665
+ * :c:func: `PyBuffer_GetPointer `
666
+ * :c:func: `PyBuffer_SizeFromFormat `
667
+ * :c:func: `PyBuffer_ToContiguous `
668
+ * :c:func: `PyBuffer_FromContiguous `
669
+ * :c:func: `PyBuffer_CopyData `
670
+ * :c:func: `PyBuffer_IsContiguous `
671
+ * :c:func: `PyBuffer_FillContiguousStrides `
672
+ * :c:func: `PyBuffer_FillInfo `
673
+ * :c:func: `PyBuffer_Release `
674
+ * :c:func: `PyMemoryView_FromBuffer `
675
+ * :c:member: `~PyBufferProcs.bf_getbuffer ` and
676
+ :c:member: `~PyBufferProcs.bf_releasebuffer ` type slots
677
+
678
+ (Contributed by Christian Heimes in :issue: `45459 `.)
679
+
660
680
661
681
Porting to Python 3.11
662
682
----------------------
Original file line number Diff line number Diff line change 1
- Add :c:type: `Py_buffer ` to limited API / stable ABI.
1
+ :c:type: `Py_buffer ` and various ``Py_buffer `` related functions are now
2
+ part of the limited API and stable ABI.
You can’t perform that action at this time.
0 commit comments