summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index f6b07b4..c73218f 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -5680,6 +5680,12 @@ handle_eval_breaker:
TRACE_FUNCTION_ENTRY();
DTRACE_FUNCTION_ENTRY();
break;
+ case POP_TOP:
+ if (_Py_OPCODE(next_instr[-1]) == RETURN_GENERATOR) {
+ /* Frame not fully initialized */
+ break;
+ }
+ /* fall through */
default:
/* line-by-line tracing support */
if (PyDTrace_LINE_ENABLED()) {