]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-139165: Make Py_SIZE, Py_IS_TYPE,Py_ SET_SIZE regular functions in stable ABI...
authorPetr Viktorin <encukou@gmail.com>
Tue, 25 Nov 2025 13:30:33 +0000 (14:30 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Nov 2025 13:30:33 +0000 (14:30 +0100)
commit226011ba127323dea894ee67e6990f1305efa2d5
treeb61ff101546e9532ac76bf69823b99e134e3fff7
parente6174ee9812f514b42ab6d3a1064bd6057de96c7
gh-139165: Make Py_SIZE, Py_IS_TYPE,Py_ SET_SIZE regular functions in stable ABI (GH-139166)

* Make Py_{SIZE,IS_TYPE,SET_SIZE} regular functions in stable ABI

Group them together with Py_TYPE & Py_SET_TYPE to cut down
on repetitive preprocessor macros.
Format repetitive definitions in object.c more concisely.

Py_SET_TYPE is still left out of the Limited API.
Doc/data/stable_abi.dat
Include/object.h
Lib/test/test_stable_abi_ctypes.py
Misc/NEWS.d/next/C_API/2025-09-22-16-32-00.gh-issue-139165.6Czn7S.rst [new file with mode: 0644]
Misc/stable_abi.toml
Objects/object.c
PC/python3dll.c