diff options
author | Inada Naoki <songofacandy@gmail.com> | 2020-06-27 09:22:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-27 09:22:09 (GMT) |
commit | 20a79021753ab26a5989e6d3397160e52973870e (patch) | |
tree | 9c79d29f7512ddd55b1835cc7ecc24ab6eae0089 /Doc | |
parent | 2f168c6356f92c38ae7751d2faf2b266a9356229 (diff) | |
download | cpython-20a79021753ab26a5989e6d3397160e52973870e.zip cpython-20a79021753ab26a5989e6d3397160e52973870e.tar.gz cpython-20a79021753ab26a5989e6d3397160e52973870e.tar.bz2 |
bpo-41123: Remove Py_UNICODE_str* functions (GH-21164)
They are undocumented and deprecated since Python 3.3.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.10.rst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 060d5de..51e42ec 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -208,4 +208,18 @@ Removed * ``PyObject_AsCharBuffer()``, ``PyObject_AsReadBuffer()``, ``PyObject_CheckReadBuffer()``, and ``PyObject_AsWriteBuffer()`` are removed. Please migrate to new buffer protocol; :c:func:`PyObject_GetBuffer` and :c:func:`PyBuffer_Release`. - (Contributed by Inada Naoki in :issue:`41103`. + (Contributed by Inada Naoki in :issue:`41103`.) + +* Removed ``Py_UNICODE_str*`` functions manipulating ``Py_UNICODE*`` strings. + (Contributed by Inada Naoki in :issue:`41123`.) + + * ``Py_UNICODE_strlen``: use :c:func:`PyUnicode_GetLength` or + :c:macro:`PyUnicode_GET_LENGTH` + * ``Py_UNICODE_strcat``: use :c:func:`PyUnicode_CopyCharacters` or + :c:func:`PyUnicode_FromFormat` + * ``Py_UNICODE_strcpy``, ``Py_UNICODE_strncpy``: use + :c:func:`PyUnicode_CopyCharacters` or :c:func:`PyUnicode_Substring` + * ``Py_UNICODE_strcmp``: use :c:func:`PyUnicode_Compare` + * ``Py_UNICODE_strncmp``: use :c:func:`PyUnicode_Tailmatch` + * ``Py_UNICODE_strchr``, ``Py_UNICODE_strrchr``: use + :c:func:`PyUnicode_FindChar` |