]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-39573: Convert Py_TYPE() and Py_SIZE() back to macros (GH-23366)
authorVictor Stinner <vstinner@python.org>
Wed, 18 Nov 2020 17:48:06 +0000 (18:48 +0100)
committerGitHub <noreply@github.com>
Wed, 18 Nov 2020 17:48:06 +0000 (18:48 +0100)
commit0e2ac21dd4960574e89561243763eabba685296a
tree62d5b28d9f66f40020d3fa403ac639a781d70d80
parent2156d964a12285280c533af1c96eb273c58451e6
bpo-39573: Convert Py_TYPE() and Py_SIZE() back to macros (GH-23366)

This change partically reverts
commit ad3252bad905d41635bcbb4b76db30d570cf0087
and the commit fe2978b3b940fe2478335e3a2ca5ad22338cdf9c.

Many third party C extension modules rely on the ability of using
Py_TYPE() to set an object type: "Py_TYPE(obj) = type;" or to set an
object type using: "Py_SIZE(obj) = size;".
Doc/c-api/structures.rst
Doc/whatsnew/3.10.rst
Include/object.h
Misc/NEWS.d/next/C API/2020-11-18-15-21-59.bpo-39573.VB3G2y.rst [new file with mode: 0644]
Modules/_testcapimodule.c