Skip to content

Commit b6d88b7

Browse files
authored
gh-95914: Add Py_UNICODE encode APIs removed in PEP 624 to 3.11 What's New (#96016)
* 3.11 Whatsnew: Add Py_UNICODE encode functions removed in PEP 624 * Just use :func: instead of :c:func: for non-resolved funcs so ! works
1 parent 9d066e2 commit b6d88b7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2136,5 +2136,30 @@ Removed
21362136
API).
21372137
(Contributed by Victor Stinner in :issue:`45412`.)
21382138

2139+
* Remove the :c:type:`Py_UNICODE` encoder APIs,
2140+
as they have been deprecated since Python 3.3,
2141+
are little used
2142+
and are inefficient relative to the recommended alternatives.
2143+
2144+
The removed functions are:
2145+
2146+
* :func:`!PyUnicode_Encode`
2147+
* :func:`!PyUnicode_EncodeASCII`
2148+
* :func:`!PyUnicode_EncodeLatin1`
2149+
* :func:`!PyUnicode_EncodeUTF7`
2150+
* :func:`!PyUnicode_EncodeUTF8`
2151+
* :func:`!PyUnicode_EncodeUTF16`
2152+
* :func:`!PyUnicode_EncodeUTF32`
2153+
* :func:`!PyUnicode_EncodeUnicodeEscape`
2154+
* :func:`!PyUnicode_EncodeRawUnicodeEscape`
2155+
* :func:`!PyUnicode_EncodeCharmap`
2156+
* :func:`!PyUnicode_TranslateCharmap`
2157+
* :func:`!PyUnicode_EncodeDecimal`
2158+
* :func:`!PyUnicode_TransformDecimalToASCII`
2159+
2160+
See :pep:`624` for details and
2161+
:pep:`migration guidance <624#alternative-apis>`.
2162+
(Contributed by Inada Naoki in :issue:`44029`.)
2163+
21392164

21402165
.. _libb2: https://www.blake2.net/

0 commit comments

Comments
 (0)