https://github.com/python/cpython/commit/26e5c6e8351adb1a77a88920ff33fc8ebee9a99e
commit: 26e5c6e8351adb1a77a88920ff33fc8ebee9a99e
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2024-06-04T09:23:55Z
summary:

gh-119613: Soft deprecate the Py_MEMCPY() macro (#120020)

Use directly memcpy() instead.

files:
A Misc/NEWS.d/next/C API/2024-06-04-10-58-20.gh-issue-119613.qOr9GF.rst
M Include/pyport.h

diff --git a/Include/pyport.h b/Include/pyport.h
index 2ba81a4be42822..1f7a9b41e0ae2b 100644
--- a/Include/pyport.h
+++ b/Include/pyport.h
@@ -180,6 +180,7 @@ typedef Py_ssize_t Py_ssize_clean_t;
 #  define Py_LOCAL_INLINE(type) static inline type
 #endif
 
+// Soft deprecated since Python 3.14, use memcpy() instead.
 #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
 #  define Py_MEMCPY memcpy
 #endif
diff --git a/Misc/NEWS.d/next/C 
API/2024-06-04-10-58-20.gh-issue-119613.qOr9GF.rst b/Misc/NEWS.d/next/C 
API/2024-06-04-10-58-20.gh-issue-119613.qOr9GF.rst
new file mode 100644
index 00000000000000..11f075b79e6f67
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2024-06-04-10-58-20.gh-issue-119613.qOr9GF.rst     
@@ -0,0 +1,2 @@
+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]

Reply via email to