mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
GH-96803: Add three C-API functions to make _PyInterpreterFrame less opaque for users of PEP 523. (GH-96849)
This commit is contained in:
parent
45a9e3834a
commit
a0df9ee8fc
9 changed files with 48 additions and 8 deletions
|
@ -27,6 +27,7 @@
|
|||
#include "pycore_dict.h"
|
||||
#include "dictobject.h"
|
||||
#include "pycore_frame.h"
|
||||
#include "frameobject.h" // _PyInterpreterFrame_GetLine
|
||||
#include "opcode.h"
|
||||
#include "pydtrace.h"
|
||||
#include "setobject.h"
|
||||
|
@ -785,7 +786,7 @@ handle_eval_breaker:
|
|||
_PyErr_Format(tstate, PyExc_SystemError,
|
||||
"%U:%d: unknown opcode %d",
|
||||
frame->f_code->co_filename,
|
||||
_PyInterpreterFrame_GetLine(frame),
|
||||
PyUnstable_InterpreterFrame_GetLine(frame),
|
||||
opcode);
|
||||
goto error;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue