]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40421: Add pyframe.h header file (GH-19755)
authorVictor Stinner <vstinner@python.org>
Tue, 28 Apr 2020 14:32:48 +0000 (16:32 +0200)
committerGitHub <noreply@github.com>
Tue, 28 Apr 2020 14:32:48 +0000 (16:32 +0200)
commit7c59d7c9860cdbaf4a9c26c9142aebd3259d046e
tree25d14f4febac1b124878b5875a936b47c6706771
parent5da352616fb8290e3c2c0245f553280824093c6a
bpo-40421: Add pyframe.h header file (GH-19755)

Add a new separated pyframe.h header file of the PyFrame public C
API: it is included by Python.h.

Add PyFrame_GetLineNumber() to the limited C API.

Replace "struct _frame" with "PyFrameObject" in header files.
PyFrameObject is now defined as struct _frame by pyframe.h which is
included early enough in Python.h.
19 files changed:
Doc/c-api/reflection.rst
Doc/whatsnew/3.9.rst
Include/Python.h
Include/ceval.h
Include/cpython/ceval.h
Include/cpython/frameobject.h
Include/cpython/pystate.h
Include/cpython/traceback.h
Include/frameobject.h
Include/genobject.h
Include/internal/pycore_ceval.h
Include/internal/pycore_traceback.h
Include/pyframe.h [new file with mode: 0644]
Include/pystate.h
Include/traceback.h
Makefile.pre.in
Objects/frameobject.c
PCbuild/pythoncore.vcxproj
PCbuild/pythoncore.vcxproj.filters