Skip to content

Commit 16ea950

Browse files
gh-141004: Document Py_MEMCPY (GH-141676)
1 parent b362632 commit 16ea950

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Doc/c-api/intro.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@ complete listing.
183183

184184
.. versionadded:: 3.6
185185

186+
.. c:macro:: Py_MEMCPY(dest, src, n)
187+
188+
This is a :term:`soft deprecated` alias to :c:func:`!memcpy`.
189+
Use :c:func:`!memcpy` directly instead.
190+
191+
.. deprecated:: 3.14
192+
The macro is :term:`soft deprecated`.
193+
186194
.. c:macro:: Py_MIN(x, y)
187195
188196
Return the minimum value between ``x`` and ``y``.

Misc/NEWS.d/3.14.0a1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6092,7 +6092,7 @@ Patch by Victor Stinner.
60926092
.. nonce: qOr9GF
60936093
.. section: C API
60946094
6095-
Soft deprecate the :c:macro:`!Py_MEMCPY` macro: use directly ``memcpy()``
6095+
Soft deprecate the :c:macro:`Py_MEMCPY` macro: use directly ``memcpy()``
60966096
instead. Patch by Victor Stinner.
60976097

60986098
..

0 commit comments

Comments
 (0)