Staging
v0.5.1
https://github.com/python/cpython
Revision 815506d852daabc40e14ff0987c1142c0205fbe7 authored by Victor Stinner on 08 December 2020, 22:51:26 UTC, committed by GitHub on 08 December 2020, 22:51:26 UTC
PyErr_ProgramText() now calls PyErr_ProgramTextObject().
1 parent 6d3dfee
Raw File
Tip revision: 815506d852daabc40e14ff0987c1142c0205fbe7 authored by Victor Stinner on 08 December 2020, 22:51:26 UTC
bpo-32381: Rewrite PyErr_ProgramText() (GH-23700)
Tip revision: 815506d
pyframe.h
/* Limited C API of PyFrame API
 *
 * Include "frameobject.h" to get the PyFrameObject structure.
 */

#ifndef Py_PYFRAME_H
#define Py_PYFRAME_H
#ifdef __cplusplus
extern "C" {
#endif

typedef struct _frame PyFrameObject;

/* Return the line of code the frame is currently executing. */
PyAPI_FUNC(int) PyFrame_GetLineNumber(PyFrameObject *);

PyAPI_FUNC(PyCodeObject *) PyFrame_GetCode(PyFrameObject *frame);

#ifdef __cplusplus
}
#endif
#endif /* !Py_PYFRAME_H */
back to top