]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-89653: PEP 670: Convert PyUnicode_KIND() macro to function (#92705)
authorVictor Stinner <vstinner@python.org>
Fri, 13 May 2022 09:49:56 +0000 (11:49 +0200)
committerGitHub <noreply@github.com>
Fri, 13 May 2022 09:49:56 +0000 (11:49 +0200)
commitdb388df1d9aff02f791fe01c7c2b28d73982dce6
tree2036b25a568296310b1dc64cdb52d3e42a084176
parentd81d57e9598dea741e049f3876ccd87072a38906
gh-89653: PEP 670: Convert PyUnicode_KIND() macro to function (#92705)

In the limited C API version 3.12, PyUnicode_KIND() is now
implemented as a static inline function. Keep the macro for the
regular C API and for the limited C API version 3.11 and older to
prevent introducing new compiler warnings.

Update _decimal.c and stringlib/eq.h for PyUnicode_KIND().
Include/cpython/unicodeobject.h
Modules/_decimal/_decimal.c
Objects/stringlib/eq.h