https://github.com/python/cpython/commit/cf2524f2b7a41fbc1d0979e585c01166621c7ce0 commit: cf2524f2b7a41fbc1d0979e585c01166621c7ce0 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: ZeroIntensity <[email protected]> date: 2025-11-17T22:57:47Z summary:
[3.14] gh-141004: Document `Py_MEMCPY` (GH-141676) (GH-141685) gh-141004: Document `Py_MEMCPY` (GH-141676) (cherry picked from commit 16ea9505ce690485bab38691e5a83f467757fc03) Co-authored-by: Stan Ulbrych <[email protected]> files: M Doc/c-api/intro.rst M Misc/NEWS.d/3.14.0a1.rst diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst index 04c4d7284ad4fd..37c1649124ea9c 100644 --- a/Doc/c-api/intro.rst +++ b/Doc/c-api/intro.rst @@ -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``. diff --git a/Misc/NEWS.d/3.14.0a1.rst b/Misc/NEWS.d/3.14.0a1.rst index 305a0b65b98e6a..1938976fa4226a 100644 --- a/Misc/NEWS.d/3.14.0a1.rst +++ b/Misc/NEWS.d/3.14.0a1.rst @@ -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. .. _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
