From 60202609a2c2d0971aadfa4729ba30b50e89c6ea Mon Sep 17 00:00:00 2001 From: Lysandros Nikolaou Date: Wed, 30 Apr 2025 11:46:41 +0200 Subject: gh-132661: Implement PEP 750 (#132662) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Lysandros Nikolaou Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Wingy Co-authored-by: Koudai Aono Co-authored-by: Dave Peck Co-authored-by: Terry Jan Reedy Co-authored-by: Paul Everitt Co-authored-by: sobolevn --- Python/symtable.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Python/symtable.c') diff --git a/Python/symtable.c b/Python/symtable.c index 2f13f35072a..f633e281019 100644 --- a/Python/symtable.c +++ b/Python/symtable.c @@ -2510,9 +2510,17 @@ symtable_visit_expr(struct symtable *st, expr_ty e) if (e->v.FormattedValue.format_spec) VISIT(st, expr, e->v.FormattedValue.format_spec); break; + case Interpolation_kind: + VISIT(st, expr, e->v.Interpolation.value); + if (e->v.Interpolation.format_spec) + VISIT(st, expr, e->v.Interpolation.format_spec); + break; case JoinedStr_kind: VISIT_SEQ(st, expr, e->v.JoinedStr.values); break; + case TemplateStr_kind: + VISIT_SEQ(st, expr, e->v.TemplateStr.values); + break; case Constant_kind: /* Nothing to do here. */ break; -- cgit v1.2.3