]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-38787: C API for module state access from extension methods (PEP 573) (GH-19936)
authorPetr Viktorin <encukou@gmail.com>
Thu, 7 May 2020 13:39:59 +0000 (15:39 +0200)
committerGitHub <noreply@github.com>
Thu, 7 May 2020 13:39:59 +0000 (15:39 +0200)
commite1becf46b4e3ba6d7d32ebf4bbd3e0804766a423
treebe3fda5019edbdc78e82ee21985ea963686f3eb8
parent4638c6429575bd6de26b12b2af5df74d6568b553
bpo-38787: C API for module state access from extension methods (PEP 573) (GH-19936)

Module C state is now accessible from C-defined heap type methods (PEP 573).
Patch by Marcel Plch and Petr Viktorin.

Co-authored-by: Marcel Plch <mplch@redhat.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
19 files changed:
Doc/c-api/structures.rst
Doc/c-api/type.rst
Include/cpython/methodobject.h [new file with mode: 0644]
Include/cpython/object.h
Include/methodobject.h
Include/object.h
Lib/test/test_capi.py
Lib/test/test_sys.py
Makefile.pre.in
Misc/NEWS.d/next/C API/2020-01-22-12-38-59.bpo-38787.HUH6hd.rst [new file with mode: 0644]
Modules/_testmultiphase.c
Modules/clinic/_testmultiphase.c.h [new file with mode: 0644]
Objects/descrobject.c
Objects/methodobject.c
Objects/object.c
Objects/typeobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Tools/clinic/clinic.py