summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d/next/C API/2021-10-14-22-16-56.bpo-45474.1OkJQh.rst
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-10-14 22:20:33 (GMT)
committerGitHub <noreply@github.com>2021-10-14 22:20:33 (GMT)
commitaf1083e975b9627a5c97013d3a2b9aef0e4b333c (patch)
tree065625bdac161b18912ec7ef005692d61117cd04 /Misc/NEWS.d/next/C API/2021-10-14-22-16-56.bpo-45474.1OkJQh.rst
parent0a883a76cda8205023c52211968bcf87bd47fd6e (diff)
downloadcpython-af1083e975b9627a5c97013d3a2b9aef0e4b333c.zip
cpython-af1083e975b9627a5c97013d3a2b9aef0e4b333c.tar.gz
cpython-af1083e975b9627a5c97013d3a2b9aef0e4b333c.tar.bz2
bpo-45474: Fix the limited C API of marshal.h (GH-28956)
Remove two functions from the limited C API: * PyMarshal_WriteLongToFile() * PyMarshal_WriteObjectToFile() The PEP 384 excludes functions expecting "FILE*" from the stable ABI. Remove also the Py_MARSHAL_VERSION macro from the limited C API.
Diffstat (limited to 'Misc/NEWS.d/next/C API/2021-10-14-22-16-56.bpo-45474.1OkJQh.rst')
-rw-r--r--Misc/NEWS.d/next/C API/2021-10-14-22-16-56.bpo-45474.1OkJQh.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-10-14-22-16-56.bpo-45474.1OkJQh.rst b/Misc/NEWS.d/next/C API/2021-10-14-22-16-56.bpo-45474.1OkJQh.rst
new file mode 100644
index 0000000..90bf498
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2021-10-14-22-16-56.bpo-45474.1OkJQh.rst
@@ -0,0 +1,10 @@
+Remove two functions from the limited C API:
+
+* :c:func:`PyMarshal_WriteLongToFile`
+* :c:func:`PyMarshal_WriteObjectToFile`
+
+The :pep:`384` excludes functions expecting ``FILE*`` from the stable ABI.
+
+Remove also the ``Py_MARSHAL_VERSION`` macro from the limited C API.
+
+Patch by Victor Stinner.