Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26e5c6e

Browse files
authored
gh-119613: Soft deprecate the Py_MEMCPY() macro (#120020)
Use directly memcpy() instead.
1 parent 5c48eb0 commit 26e5c6e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Include/pyport.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ typedef Py_ssize_t Py_ssize_clean_t;
180180
# define Py_LOCAL_INLINE(type) static inline type
181181
#endif
182182

183+
// Soft deprecated since Python 3.14, use memcpy() instead.
183184
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 < 0x030b0000
184185
# define Py_MEMCPY memcpy
185186
#endif
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Soft deprecate the :c:macro:`!Py_MEMCPY` macro: use directly ``memcpy()``
2+
instead. Patch by Victor Stinner.

0 commit comments

Comments
 (0)