]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35134: Split warnings.h and weakrefobject.h (GH-29042)
authorVictor Stinner <vstinner@python.org>
Mon, 18 Oct 2021 23:31:57 +0000 (01:31 +0200)
committerGitHub <noreply@github.com>
Mon, 18 Oct 2021 23:31:57 +0000 (01:31 +0200)
commitaad88d33d9db0a93e480f0234292b948890dfc2a
tree9a7be9c98f0c6a4d64ddda7859922b394ed3cdc3
parent4d03de3329ed8daa9c1107b1aedbb0fa280bddb6
bpo-35134: Split warnings.h and weakrefobject.h (GH-29042)

Split header files to move the non-limited API to Include/cpython/:

* Include/warnings.h => Include/cpython/warnings.h
* Include/weakrefobject.h => Include/cpython/weakrefobject.h

Exclude PyWeakref_GET_OBJECT() from the limited C API. It never
worked since the PyWeakReference structure is opaque in the limited C
API.

Move _PyWarnings_Init() and _PyErr_WarnUnawaitedCoroutine() to the
internal C API.
Doc/whatsnew/3.11.rst
Include/cpython/warnings.h [new file with mode: 0644]
Include/cpython/weakrefobject.h [new file with mode: 0644]
Include/internal/pycore_warnings.h
Include/warnings.h
Include/weakrefobject.h
Makefile.pre.in
Misc/NEWS.d/next/C API/2021-10-19-00-20-40.bpo-35134.Z0Zk_m.rst [new file with mode: 0644]
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters