]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938)
authorVictor Stinner <vstinner@python.org>
Sun, 19 Jun 2022 10:02:33 +0000 (12:02 +0200)
committerGitHub <noreply@github.com>
Sun, 19 Jun 2022 10:02:33 +0000 (12:02 +0200)
commit27b989403356ccdd47545a93aeab8434e9c69f21
tree731c6554ce03b81ed4fca91035ddad1efec632a6
parent2664d9aacf25aa18e1753e57f80f345ed9bd31e0
gh-93937, C API: Move PyFrame_GetBack() to Python.h (#93938)

Move the follow functions and type from frameobject.h to pyframe.h,
so the standard <Python.h> provide frame getter functions:

* PyFrame_Check()
* PyFrame_GetBack()
* PyFrame_GetBuiltins()
* PyFrame_GetGenerator()
* PyFrame_GetGlobals()
* PyFrame_GetLasti()
* PyFrame_GetLocals()
* PyFrame_Type

Remove #include "frameobject.h" from many C files. It's no longer
needed.
21 files changed:
Doc/whatsnew/3.11.rst
Include/cpython/frameobject.h
Include/cpython/pyframe.h [new file with mode: 0644]
Include/pyframe.h
Makefile.pre.in
Misc/NEWS.d/next/C API/2022-06-17-13-41-38.gh-issue-93937.uKVTEh.rst [new file with mode: 0644]
Modules/_ctypes/callbacks.c
Modules/_testcapimodule.c
Modules/_xxsubinterpretersmodule.c
Modules/faulthandler.c
Modules/pyexpat.c
Objects/object.c
Objects/typeobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters
Python/_warnings.c
Python/ceval.c
Python/frame.c
Python/suggestions.c
Python/sysmodule.c
Python/traceback.c