mirror of
https://github.com/python/cpython.git
synced 2025-10-27 00:36:52 +00:00
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>
This commit is contained in:
parent
f332594dd4
commit
8ed705c083
9 changed files with 25 additions and 14 deletions
|
|
@ -52,6 +52,8 @@ Python:
|
|||
whether you selected a "narrow" or "wide" Unicode version of Python at
|
||||
build time.
|
||||
|
||||
.. deprecated-removed:: 3.13 3.15
|
||||
|
||||
|
||||
.. c:type:: PyASCIIObject
|
||||
PyCompactUnicodeObject
|
||||
|
|
|
|||
|
|
@ -352,6 +352,11 @@ Porting to Python 3.13
|
|||
Deprecated
|
||||
----------
|
||||
|
||||
* Deprecate the old ``Py_UNICODE`` and ``PY_UNICODE_TYPE`` types: use directly
|
||||
the ``wchar_t`` type instead. Since Python 3.3, ``Py_UNICODE`` and
|
||||
``PY_UNICODE_TYPE`` are just aliases to ``wchar_t``.
|
||||
(Contributed by Victor Stinner in :gh:`105156`.)
|
||||
|
||||
Removed
|
||||
-------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue