Skip to content

Commit f0d8d36

Browse files
CAM-Gerlachmiss-islington
authored andcommitted
pythongh-95914: Add Py_UNICODE encode APIs removed in PEP 624 to 3.11 What's New (pythonGH-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 (cherry picked from commit b6d88b7) Co-authored-by: C.A.M. Gerlach <[email protected]>
1 parent e8e3fe9 commit f0d8d36

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
@@ -2124,5 +2124,30 @@ Removed
21242124
API).
21252125
(Contributed by Victor Stinner in :issue:`45412`.)
21262126

2127+
* Remove the :c:type:`Py_UNICODE` encoder APIs,
2128+
as they have been deprecated since Python 3.3,
2129+
are little used
2130+
and are inefficient relative to the recommended alternatives.
2131+
2132+
The removed functions are:
2133+
2134+
* :func:`!PyUnicode_Encode`
2135+
* :func:`!PyUnicode_EncodeASCII`
2136+
* :func:`!PyUnicode_EncodeLatin1`
2137+
* :func:`!PyUnicode_EncodeUTF7`
2138+
* :func:`!PyUnicode_EncodeUTF8`
2139+
* :func:`!PyUnicode_EncodeUTF16`
2140+
* :func:`!PyUnicode_EncodeUTF32`
2141+
* :func:`!PyUnicode_EncodeUnicodeEscape`
2142+
* :func:`!PyUnicode_EncodeRawUnicodeEscape`
2143+
* :func:`!PyUnicode_EncodeCharmap`
2144+
* :func:`!PyUnicode_TranslateCharmap`
2145+
* :func:`!PyUnicode_EncodeDecimal`
2146+
* :func:`!PyUnicode_TransformDecimalToASCII`
2147+
2148+
See :pep:`624` for details and
2149+
:pep:`migration guidance <624#alternative-apis>`.
2150+
(Contributed by Inada Naoki in :issue:`44029`.)
2151+
21272152

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

0 commit comments

Comments
 (0)