bpo-46836: Move PyFrameObject to pycore_frame.h (GH-31530)

Move the PyFrameObject type definition (struct _frame) to the
internal C API pycore_frame.h header file.
This commit is contained in:
Victor Stinner 2022-02-25 12:53:19 +01:00 committed by GitHub
parent 4657bf7016
commit 18b5dd68c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 57 additions and 48 deletions

View file

@ -288,8 +288,16 @@ the same library that the Python runtime is using.
.. c:type:: PyFrameObject
The C structure of the objects used to describe frame objects. The
fields of this type are subject to change at any time.
The C structure of the objects used to describe frame objects.
The structure is only part of the internal C API: fields should not be
access directly. Use getter functions like :c:func:`PyFrame_GetCode` and
:c:func:`PyFrame_GetBack`.
Debuggers and profilers can use the limited C API to access this structure.
.. versionchanged:: 3.11
The structure moved to the internal C API headers.
.. c:function:: PyObject* PyEval_EvalFrame(PyFrameObject *f)