mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Implement the frame evaluation API aspect of PEP 523.
This commit is contained in:
parent
625cb379f7
commit
3cebf93872
6 changed files with 47 additions and 3 deletions
|
@ -796,6 +796,13 @@ PyEval_EvalFrame(PyFrameObject *f) {
|
|||
|
||||
PyObject *
|
||||
PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
|
||||
{
|
||||
PyThreadState *tstate = PyThreadState_GET();
|
||||
return tstate->interp->eval_frame(f, throwflag);
|
||||
}
|
||||
|
||||
PyObject *
|
||||
_PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
|
||||
{
|
||||
#ifdef DXPAIRS
|
||||
int lastopcode = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue