| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent cf4c4ec commit 3edc57c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -786,11 +786,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int | |||
| 786 | 786 | ||
| 787 | 787 | _PyInterpreterFrame entry_frame; | |
| 788 | 788 | ||
| 789 | - if (_Py_EnterRecursiveCallTstate(tstate, "")) { | ||
| 790 | - assert(frame->owner != FRAME_OWNED_BY_INTERPRETER); | ||
| 791 | - _PyEval_FrameClearAndPop(tstate, frame); | ||
| 792 | - return NULL; | ||
| 793 | - } | ||
| 789 | + | ||
| 794 | 790 | ||
| 795 | 791 | /* Local "register" variables. | |
| 796 | 792 | * These are cached values from the frame and code object. */ | |
@@ -820,6 +816,11 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int | |||
| 820 | 816 | tstate->current_frame = frame; | |
| 821 | 817 | ||
| 822 | 818 | tstate->c_recursion_remaining -= (PY_EVAL_C_STACK_UNITS - 1); | |
| 819 | + if (_Py_EnterRecursiveCallTstate(tstate, "")) { | ||
| 820 | + tstate->c_recursion_remaining--; | ||
| 821 | + tstate->py_recursion_remaining--; | ||
| 822 | + goto exit_unwind; | ||
| 823 | + } | ||
| 823 | 824 | ||
| 824 | 825 | /* support for generator.throw() */ | |
| 825 | 826 | if (throwflag) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments