]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39573: Py_TYPE becomes a static inline function (GH-26493)
authorVictor Stinner <vstinner@python.org>
Thu, 3 Jun 2021 16:42:59 +0000 (18:42 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Jun 2021 16:42:59 +0000 (18:42 +0200)
commitf3fa63ec75fdbb4a08a10957a5c631bf0c4a5970
tree7e87d8e48debfad12ff2cd79637ca1eb03af6ca0
parentd88b47b5a396aa8d66f9a0e6b13a0825d59d0eff
bpo-39573: Py_TYPE becomes a static inline function (GH-26493)

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