Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
frameobject.h36 linesDownload Raw Back to cpython
1/* Frame object interface */2 3#ifndef Py_CPYTHON_FRAMEOBJECT_H4#  error "this header file must not be included directly"5#endif6 7/* Standard object interface */8 9PyAPI_FUNC(PyFrameObject *) PyFrame_New(PyThreadState *, PyCodeObject *,10                                        PyObject *, PyObject *);11 12/* The rest of the interface is specific for frame objects */13 14/* Conversions between "fast locals" and locals in dictionary */15 16PyAPI_FUNC(void) PyFrame_LocalsToFast(PyFrameObject *, int);17 18/* -- Caveat emptor --19 * The concept of entry frames is an implementation detail of the CPython20 * interpreter. This API is considered unstable and is provided for the21 * convenience of debuggers, profilers and state-inspecting tools. Notice that22 * this API can be changed in future minor versions if the underlying frame23 * mechanism change or the concept of an 'entry frame' or its semantics becomes24 * obsolete or outdated. */25 26PyAPI_FUNC(int) _PyFrame_IsEntryFrame(PyFrameObject *frame);27 28PyAPI_FUNC(int) PyFrame_FastToLocalsWithError(PyFrameObject *f);29PyAPI_FUNC(void) PyFrame_FastToLocals(PyFrameObject *);30 31 32typedef struct {33    PyObject_HEAD34    PyFrameObject* frame;35} PyFrameLocalsProxyObject;36 
codekingpro/portable-devtools · Team Ai