Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes15kdownloads
pyframe.h46 linesDownload Raw Back to cpython
1#ifndef Py_CPYTHON_PYFRAME_H2#  error "this header file must not be included directly"3#endif4 5PyAPI_DATA(PyTypeObject) PyFrame_Type;6PyAPI_DATA(PyTypeObject) PyFrameLocalsProxy_Type;7 8#define PyFrame_Check(op) Py_IS_TYPE((op), &PyFrame_Type)9#define PyFrameLocalsProxy_Check(op) Py_IS_TYPE((op), &PyFrameLocalsProxy_Type)10 11PyAPI_FUNC(PyFrameObject *) PyFrame_GetBack(PyFrameObject *frame);12PyAPI_FUNC(PyObject *) PyFrame_GetLocals(PyFrameObject *frame);13 14PyAPI_FUNC(PyObject *) PyFrame_GetGlobals(PyFrameObject *frame);15PyAPI_FUNC(PyObject *) PyFrame_GetBuiltins(PyFrameObject *frame);16 17PyAPI_FUNC(PyObject *) PyFrame_GetGenerator(PyFrameObject *frame);18PyAPI_FUNC(int) PyFrame_GetLasti(PyFrameObject *frame);19PyAPI_FUNC(PyObject*) PyFrame_GetVar(PyFrameObject *frame, PyObject *name);20PyAPI_FUNC(PyObject*) PyFrame_GetVarString(PyFrameObject *frame, const char *name);21 22/* The following functions are for use by debuggers and other tools23 * implementing custom frame evaluators with PEP 523. */24 25struct _PyInterpreterFrame;26 27/* Returns the code object of the frame (strong reference).28 * Does not raise an exception. */29PyAPI_FUNC(PyObject *) PyUnstable_InterpreterFrame_GetCode(struct _PyInterpreterFrame *frame);30 31/* Returns a byte offset into the last executed instruction.32 * Does not raise an exception. */33PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLasti(struct _PyInterpreterFrame *frame);34 35/* Returns the currently executing line number, or -1 if there is no line number.36 * Does not raise an exception. */37PyAPI_FUNC(int) PyUnstable_InterpreterFrame_GetLine(struct _PyInterpreterFrame *frame);38 39#define PyUnstable_EXECUTABLE_KIND_SKIP 040#define PyUnstable_EXECUTABLE_KIND_PY_FUNCTION 141#define PyUnstable_EXECUTABLE_KIND_BUILTIN_FUNCTION 342#define PyUnstable_EXECUTABLE_KIND_METHOD_DESCRIPTOR 443#define PyUnstable_EXECUTABLE_KINDS 544 45PyAPI_DATA(const PyTypeObject *) const PyUnstable_ExecutableKinds[PyUnstable_EXECUTABLE_KINDS+1];46 
codekingpro/portable-devtools · Team Ai