]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39573: Py_TYPE becomes a static inline function (GH-28128)
authorVictor Stinner <vstinner@python.org>
Wed, 8 Sep 2021 09:59:13 +0000 (11:59 +0200)
committerGitHub <noreply@github.com>
Wed, 8 Sep 2021 09:59:13 +0000 (11:59 +0200)
commitcb15afcccffc6c42cbfb7456ce8db89cd2f77512
tree1a0e5510e261f441f1bd3b7027c5ab452967288e
parent4dc4300c686f543d504ab6fa9fe600eaf11bb695
bpo-39573: Py_TYPE becomes a static inline function (GH-28128)

Convert the Py_TYPE() and Py_SIZE() macros to static inline
functions. The Py_SET_TYPE() and Py_SET_SIZE() functions must now be
used to set an object type and size.
Doc/c-api/structures.rst
Doc/whatsnew/3.11.rst
Include/object.h
Misc/NEWS.d/next/C API/2021-06-03-00-59-48.bpo-39573.-elHTJ.rst [new file with mode: 0644]
Modules/_testcapimodule.c