summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2023-06-02 01:12:40 (GMT)
committerGitHub <noreply@github.com>2023-06-02 01:12:40 (GMT)
commit37498fc95012ba8e147db646b841bc3d36ddf4af (patch)
treecd71e0d73e0eb7e013f12862593b909cd739014d /Misc
parentef300937c2a1b3ebe19c2835f3b46585825c1e1f (diff)
downloadcpython-37498fc95012ba8e147db646b841bc3d36ddf4af.zip
cpython-37498fc95012ba8e147db646b841bc3d36ddf4af.tar.gz
cpython-37498fc95012ba8e147db646b841bc3d36ddf4af.tar.bz2
gh-85275: Remove old buffer APIs (#105137)
They are now abi-only. Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2023-05-31-19-38-45.gh-issue-85275.doojgE.rst4
-rw-r--r--Misc/stable_abi.toml4
2 files changed, 8 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2023-05-31-19-38-45.gh-issue-85275.doojgE.rst b/Misc/NEWS.d/next/C API/2023-05-31-19-38-45.gh-issue-85275.doojgE.rst
new file mode 100644
index 0000000..082b77b
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2023-05-31-19-38-45.gh-issue-85275.doojgE.rst
@@ -0,0 +1,4 @@
+``PyObject_AsCharBuffer()``, ``PyObject_AsReadBuffer()``,
+``PyObject_CheckReadBuffer()``, and ``PyObject_AsWriteBuffer()`` are
+removed. Please migrate to new buffer protocol; :c:func:`PyObject_GetBuffer`
+and :c:func:`PyBuffer_Release`.
diff --git a/Misc/stable_abi.toml b/Misc/stable_abi.toml
index 2209f6e..4d83387 100644
--- a/Misc/stable_abi.toml
+++ b/Misc/stable_abi.toml
@@ -1755,12 +1755,16 @@
[function.PyObject_AsCharBuffer]
added = '3.2'
+ abi_only = true
[function.PyObject_AsReadBuffer]
added = '3.2'
+ abi_only = true
[function.PyObject_AsWriteBuffer]
added = '3.2'
+ abi_only = true
[function.PyObject_CheckReadBuffer]
added = '3.2'
+ abi_only = true
# Flags are implicitly part of the ABI: