]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44029: Remove Py_UNICODE APIs (GH-25881)
authorInada Naoki <songofacandy@gmail.com>
Fri, 7 May 2021 06:58:29 +0000 (15:58 +0900)
committerGitHub <noreply@github.com>
Fri, 7 May 2021 06:58:29 +0000 (15:58 +0900)
commit9ad8f109ac037ac088e09dcd2da523322c5caf34
treed125df68405fd1e98f3edf67d9e3c52b679688f5
parent4ebf4a6bfad4afcbab3baf9c0159c7767e2a64c0
bpo-44029: Remove Py_UNICODE APIs (GH-25881)

Remove deprecated `Py_UNICODE` APIs: `PyUnicode_Encode`,
`PyUnicode_EncodeUTF7`, `PyUnicode_EncodeUTF8`,
`PyUnicode_EncodeUTF16`, `PyUnicode_EncodeUTF32`,
`PyUnicode_EncodeLatin1`, `PyUnicode_EncodeMBCS`,
`PyUnicode_EncodeDecimal`, `PyUnicode_EncodeRawUnicodeEscape`,
`PyUnicode_EncodeCharmap`, `PyUnicode_EncodeUnicodeEscape`,
`PyUnicode_TransformDecimalToASCII`, `PyUnicode_TranslateCharmap`,
`PyUnicodeEncodeError_Create`, `PyUnicodeTranslateError_Create`.

See :pep:`393` and :pep:`624` for reference.
Doc/c-api/exceptions.rst
Doc/c-api/unicode.rst
Doc/data/refcounts.dat
Include/cpython/pyerrors.h
Include/cpython/unicodeobject.h
Lib/test/test_unicode.py
Misc/NEWS.d/next/C API/2021-05-04-17-43-39.bpo-44029.ayX4PR.rst [new file with mode: 0644]
Modules/_pickle.c
Modules/_testcapimodule.c
Objects/exceptions.c
Objects/unicodeobject.c