]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89188: Implement PyUnicode_KIND() as a function (#129412)
authorVictor Stinner <vstinner@python.org>
Thu, 30 Jan 2025 11:27:27 +0000 (12:27 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Jan 2025 11:27:27 +0000 (11:27 +0000)
commita810cb89f108f026d70c5b20141b709493051d96
tree75745a7123a9a4c4b7f5b3fbc572b45a4eb09afc
parente1c4ba928852eac0b0e0bded1c314e3e36975286
gh-89188: Implement PyUnicode_KIND() as a function (#129412)

Implement PyUnicode_KIND() and PyUnicode_DATA() as function, in
addition to the macros with the same names. The macros rely on C bit
fields which have compiler-specific layout.
Include/cpython/unicodeobject.h
Misc/NEWS.d/next/C_API/2025-01-29-11-58-38.gh-issue-89188.BsfLr3.rst [new file with mode: 0644]
Objects/unicodeobject.c