Staging
v0.5.1
https://github.com/python/cpython
Revision 64409117361499058b1bf95e6efec31f7bb3c0d0 authored by Miss Islington (bot) on 08 June 2020, 01:08:53 UTC, committed by GitHub on 08 June 2020, 01:08:53 UTC
(cherry picked from commit 972ab0327675e695373fc6272d5ac24e187579ad)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent 71f5016
Raw File
Tip revision: 64409117361499058b1bf95e6efec31f7bb3c0d0 authored by Miss Islington (bot) on 08 June 2020, 01:08:53 UTC
bpo-40904: Fix segfault in the new parser with f-string containing yield statements with no value (GH-20701)
Tip revision: 6440911
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