diff options
author | Inada Naoki <songofacandy@gmail.com> | 2020-06-18 08:30:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 08:30:53 (GMT) |
commit | 610a60c601fb4380eee30e15be1cd4dcbdaeec4c (patch) | |
tree | c628710b4dc5552913a9b3cbe74b704e3b958d37 /Doc | |
parent | 9a58f03dc21d15c076d051d902ce1d0324db9741 (diff) | |
download | cpython-610a60c601fb4380eee30e15be1cd4dcbdaeec4c.zip cpython-610a60c601fb4380eee30e15be1cd4dcbdaeec4c.tar.gz cpython-610a60c601fb4380eee30e15be1cd4dcbdaeec4c.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>
(cherry picked from commit 2c4928d37edc5e4aeec3c0b79fa3460b1ec9b60d)
Diffstat (limited to 'Doc')
-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 66dce83..8412d1f 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`.) |