]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-141004: Document `Py_MEMCPY` (GH-141676)
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Mon, 17 Nov 2025 22:52:13 +0000 (22:52 +0000)
committerGitHub <noreply@github.com>
Mon, 17 Nov 2025 22:52:13 +0000 (17:52 -0500)
Doc/c-api/intro.rst
Misc/NEWS.d/3.14.0a1.rst

index c76cc2f70ecccffebd9edfcf5ba056e5a07d4e46..bace21b798109152f59beedce9030f6c550e043f 100644 (file)
@@ -183,6 +183,14 @@ complete listing.
 
    .. versionadded:: 3.6
 
+.. c:macro:: Py_MEMCPY(dest, src, n)
+
+   This is a :term:`soft deprecated` alias to :c:func:`!memcpy`.
+   Use :c:func:`!memcpy` directly instead.
+
+   .. deprecated:: 3.14
+      The macro is :term:`soft deprecated`.
+
 .. c:macro:: Py_MIN(x, y)
 
    Return the minimum value between ``x`` and ``y``.
index 305a0b65b98e6aef7dc723f929f06fc765007730..1938976fa4226a4a0dbf5f01959c2c4a7313a128 100644 (file)
@@ -6092,7 +6092,7 @@ Patch by Victor Stinner.
 .. nonce: qOr9GF
 .. section: C API
 
-Soft deprecate the :c:macro:`!Py_MEMCPY` macro: use directly ``memcpy()``
+Soft deprecate the :c:macro:`Py_MEMCPY` macro: use directly ``memcpy()``
 instead.  Patch by Victor Stinner.
 
 ..