]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-146636: Improve ABI/feature selection, add new header for it (GH-148302)
authorPetr Viktorin <encukou@gmail.com>
Thu, 23 Apr 2026 09:52:13 +0000 (11:52 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Apr 2026 09:52:13 +0000 (11:52 +0200)
commitab41a347ebc7e6c3e3f5795c4a24545bfbf92a6e
tree182969dd8f29bdcac7c49e28555fa6d7853bdf18
parent3b9397988d1f83740e7d73d17d56767976a583b4
gh-146636: Improve ABI/feature selection, add new header for it (GH-148302)

Improve ABI/feature selection, add new header for it.

Add a test that Python headers themselves don't use
Py_GIL_DISABLED in abi3t: abi3 and abi3t ought to be the
same except the _Py_OPAQUE_PYOBJECT differences.
This is done using the GCC-only poison pragma.

Co-authored-by: Victor Stinner <vstinner@python.org>
Include/Python.h
Include/exports.h
Include/patchlevel.h
Include/pyabi.h [new file with mode: 0644]
Include/pyport.h
Lib/test/test_cext/setup.py
Makefile.pre.in
Misc/NEWS.d/next/C_API/2026-04-09-14-45-44.gh-issue-148267.p84kG_.rst [new file with mode: 0644]
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters