]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055)
authorPetr Viktorin <encukou@gmail.com>
Tue, 5 May 2026 07:18:04 +0000 (09:18 +0200)
committerGitHub <noreply@github.com>
Tue, 5 May 2026 07:18:04 +0000 (09:18 +0200)
commit508b49845d23404c6d13f9d75cf84a9c936fb0ce
tree1d2b7f1b231f4645485662f8fe7a7486a22aa299
parent5dd21617164cf69e848a70e3d7e32faf0bc3f279
gh-149044: Implement PEP 820 – PySlot: Unified slot system for the C API (GH-149055)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
56 files changed:
.gitattributes
Doc/c-api/extension-modules.rst
Doc/c-api/index.rst
Doc/c-api/module.rst
Doc/c-api/slots.rst [new file with mode: 0644]
Doc/c-api/type.rst
Doc/c-api/typeobj.rst
Doc/data/stable_abi.dat
Doc/extending/first-extension-module.rst
Doc/includes/capi-extension/spammodule-01.c
Doc/whatsnew/3.15.rst
Include/Python.h
Include/exports.h
Include/internal/pycore_importdl.h
Include/internal/pycore_slots.h [new file with mode: 0644]
Include/internal/pycore_slots_generated.h [new file with mode: 0644]
Include/moduleobject.h
Include/object.h
Include/pytypedefs.h
Include/slots.h [new file with mode: 0644]
Include/slots_generated.h [moved from Include/typeslots.h with 60% similarity]
Lib/test/test_capi/test_misc.py
Lib/test/test_capi/test_module.py
Lib/test/test_capi/test_slots.py [new file with mode: 0644]
Lib/test/test_cext/extension.c
Lib/test/test_stable_abi_ctypes.py
Makefile.pre.in
Misc/NEWS.d/next/C_API/2026-04-27-10-56-22.gh-issue-149044.TbOcUS.rst [new file with mode: 0644]
Misc/stable_abi.toml
Modules/Setup.stdlib.in
Modules/_testcapi/module.c
Modules/_testcapi/type.c
Modules/_testlimitedcapi.c
Modules/_testlimitedcapi/parts.h
Modules/_testlimitedcapi/slots.c [new file with mode: 0644]
Modules/_testmultiphase.c
Objects/moduleobject.c
Objects/typeobject.c
Objects/typeslots.inc [deleted file]
Objects/typeslots.py [deleted file]
PC/python3dll.c
PCbuild/_freeze_module.vcxproj
PCbuild/_freeze_module.vcxproj.filters
PCbuild/_testlimitedcapi.vcxproj
PCbuild/_testlimitedcapi.vcxproj.filters
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/import.c
Python/slots.c [new file with mode: 0644]
Python/slots.toml [new file with mode: 0644]
Python/slots_generated.c [new file with mode: 0644]
Tools/build/.ruff.toml
Tools/build/generate_slots.py [new file with mode: 0755]
Tools/c-analyzer/cpython/ignored.tsv
configure
configure.ac