summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-02-02 15:03:10 (GMT)
committerGitHub <noreply@github.com>2022-02-02 15:03:10 (GMT)
commitf66c857572a308822c70fd25e0197b6e0dec6e34 (patch)
tree0014ec4456f837b05462e172655e194385e2ec61 /Doc/whatsnew
parent08f8301b21648d58d053e1a513db8ed32fbf37dd (diff)
downloadcpython-f66c857572a308822c70fd25e0197b6e0dec6e34.zip
cpython-f66c857572a308822c70fd25e0197b6e0dec6e34.tar.gz
cpython-f66c857572a308822c70fd25e0197b6e0dec6e34.tar.bz2
bpo-45459: Add Py_buffer to limited API (GH-29991)
- [x] ``Py_buffer`` struct - [x] ``PyBuffer_*()`` API functions - [x] ``PyBUF_*`` constants - [x] ``Py_bf_getbuffer`` and ``Py_bf_releasebuffer`` type slots - [x] ``PyMemoryView_FromBuffer()`` API - [x] tests for limited API - [x] ``make regen-limited-abi`` - [x] documentation update - [ ] export ``PyPickleBuffer*()`` API ???
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.11.rst20
1 files changed, 20 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index e7f3dab..3458ad6 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -657,6 +657,26 @@ New Features
:c:macro:`PY_VERSION_HEX`.
(Contributed by Gabriele N. Tornetta in :issue:`43931`.)
+* :c:type:`Py_buffer` and APIs are now part of the limited API and the stable
+ ABI:
+
+ * :c:func:`PyObject_CheckBuffer`
+ * :c:func:`PyObject_GetBuffer`
+ * :c:func:`PyBuffer_GetPointer`
+ * :c:func:`PyBuffer_SizeFromFormat`
+ * :c:func:`PyBuffer_ToContiguous`
+ * :c:func:`PyBuffer_FromContiguous`
+ * :c:func:`PyBuffer_CopyData`
+ * :c:func:`PyBuffer_IsContiguous`
+ * :c:func:`PyBuffer_FillContiguousStrides`
+ * :c:func:`PyBuffer_FillInfo`
+ * :c:func:`PyBuffer_Release`
+ * :c:func:`PyMemoryView_FromBuffer`
+ * :c:member:`~PyBufferProcs.bf_getbuffer` and
+ :c:member:`~PyBufferProcs.bf_releasebuffer` type slots
+
+ (Contributed by Christian Heimes in :issue:`45459`.)
+
Porting to Python 3.11
----------------------