diff options
Diffstat (limited to 'Python/codegen.c')
-rw-r--r-- | Python/codegen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/codegen.c b/Python/codegen.c index cd77b34..7669cc5 100644 --- a/Python/codegen.c +++ b/Python/codegen.c @@ -4885,6 +4885,9 @@ codegen_with(compiler *c, stmt_ty s, int pos) static int codegen_visit_expr(compiler *c, expr_ty e) { + if (Py_EnterRecursiveCall(" during compilation")) { + return ERROR; + } location loc = LOC(e); switch (e->kind) { case NamedExpr_kind: |