diff options
author | Mark Shannon <mark@hotpy.org> | 2021-10-11 10:34:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 10:34:02 (GMT) |
commit | fcb3d2ff633f3e9a826888d8b29c305a3959ff54 (patch) | |
tree | 5d9367bbe6e235521f32c5163df69404cc840a51 /Include/internal | |
parent | 9883ca498d654a4792d530bd8d6d64fef4dc971c (diff) | |
download | cpython-fcb3d2ff633f3e9a826888d8b29c305a3959ff54.zip cpython-fcb3d2ff633f3e9a826888d8b29c305a3959ff54.tar.gz cpython-fcb3d2ff633f3e9a826888d8b29c305a3959ff54.tar.bz2 |
Restore PEP 523 functionality. (GH-28871)
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_ceval.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/internal/pycore_ceval.h b/Include/internal/pycore_ceval.h index 66ddc99..f2acf10 100644 --- a/Include/internal/pycore_ceval.h +++ b/Include/internal/pycore_ceval.h @@ -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); } |