diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-01 06:56:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 06:56:35 (GMT) |
commit | 8ed705c083e8e5ff37649d998a8b1524ec921519 (patch) | |
tree | 88bdd612236308b4585d851e168c94dc1ddf5bf0 /Include | |
parent | f332594dd47947612e1e5d2faf287930552a5110 (diff) | |
download | cpython-8ed705c083e8e5ff37649d998a8b1524ec921519.zip cpython-8ed705c083e8e5ff37649d998a8b1524ec921519.tar.gz cpython-8ed705c083e8e5ff37649d998a8b1524ec921519.tar.bz2 |
gh-105156: Deprecate the old Py_UNICODE type in C API (#105157)
Deprecate the old Py_UNICODE and PY_UNICODE_TYPE types in the C API:
use wchar_t instead.
Replace Py_UNICODE with wchar_t in multiple C files.
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/unicodeobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index 3394726..92e7afd 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -6,8 +6,8 @@ Python and represents a single Unicode element in the Unicode type. With PEP 393, Py_UNICODE is deprecated and replaced with a typedef to wchar_t. */ -#define PY_UNICODE_TYPE wchar_t -/* Py_DEPRECATED(3.3) */ typedef wchar_t Py_UNICODE; +Py_DEPRECATED(3.13) typedef wchar_t PY_UNICODE_TYPE; +Py_DEPRECATED(3.13) typedef wchar_t Py_UNICODE; /* --- Internal Unicode Operations ---------------------------------------- */ |