mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
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:
parent
4657bf7016
commit
18b5dd68c6
5 changed files with 57 additions and 48 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue