]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-80527: Deprecate PEP 623 Unicode functions (#91801)
authorVictor Stinner <vstinner@python.org>
Fri, 22 Apr 2022 11:05:36 +0000 (13:05 +0200)
committerGitHub <noreply@github.com>
Fri, 22 Apr 2022 11:05:36 +0000 (13:05 +0200)
commit9e146bbb7e1c0d872817ac63c60454a201b50039
tree0ae6a1a7f3aafc0bc6f4be535b01cef621f33129
parent82ec638ab706577c043056a57e2a2322b43ef94a
gh-80527: Deprecate PEP 623 Unicode functions (#91801)

Deprecate functions:

* PyUnicode_AS_DATA()
* PyUnicode_AS_UNICODE()
* PyUnicode_GET_DATA_SIZE()
* PyUnicode_GET_SIZE()

Previously, these functions were macros and so it wasn't possible to
decorate them with Py_DEPRECATED().
Include/cpython/unicodeobject.h
Misc/NEWS.d/next/C API/2022-04-21-23-11-35.gh-issue-80527.Cx-95G.rst [new file with mode: 0644]