diff options
author | Inada Naoki <songofacandy@gmail.com> | 2020-06-17 11:09:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 11:09:44 (GMT) |
commit | 2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d (patch) | |
tree | 31be169cf2554f600034c827870ce2ce384470cd /Doc/whatsnew | |
parent | 818f5b597ae93411cc44e404544247d436026a00 (diff) | |
download | cpython-2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d.zip cpython-2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d.tar.gz cpython-2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d.tar.bz2 |
bpo-36346: Add Py_DEPRECATED to deprecated unicode APIs (GH-20878)
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.9.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index 67a83bc..15fca8f 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -1097,6 +1097,12 @@ Porting to Python 3.9 internal C API (``pycore_gc.h``). (Contributed by Victor Stinner in :issue:`40241`.) +* The ``Py_UNICODE_COPY``, ``Py_UNICODE_FILL``, ``PyUnicode_WSTR_LENGTH``, + :c:func:`PyUnicode_FromUnicode`, :c:func:`PyUnicode_AsUnicode`, + ``_PyUnicode_AsUnicode``, and :c:func:`PyUnicode_AsUnicodeAndSize` are + marked as deprecated in C. They have been deprecated by :pep:`393` since + Python 3.3. + (Contributed by Inada Naoki in :issue:`36346`.) Removed ------- @@ -1165,3 +1171,8 @@ Removed * Remove ``_PyUnicode_ClearStaticStrings()`` function. (Contributed by Victor Stinner in :issue:`39465`.) + +* Remove ``Py_UNICODE_MATCH``. It has been deprecated by :pep:`393`, and + broken since Python 3.3. The :c:func:`PyUnicode_Tailmatch` function can be + used instead. + (Contributed by Inada Naoki in :issue:`36346`.) |