mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Restore PEP 523 functionality. (GH-28871)
This commit is contained in:
parent
9883ca498d
commit
fcb3d2ff63
3 changed files with 15 additions and 6 deletions
|
@ -43,6 +43,9 @@ extern PyObject *_PyEval_BuiltinsFromGlobals(
|
|||
static inline PyObject*
|
||||
_PyEval_EvalFrame(PyThreadState *tstate, struct _interpreter_frame *frame, int throwflag)
|
||||
{
|
||||
if (tstate->interp->eval_frame == NULL) {
|
||||
return _PyEval_EvalFrameDefault(tstate, frame, throwflag);
|
||||
}
|
||||
return tstate->interp->eval_frame(tstate, frame, throwflag);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue