Files
cpython/Parser
Lysandros Nikolaou 2258026edd gh-160491: Fix location of invalid escapes in f-strings and t-strings (#160493)
Literal parts of f-strings and t-strings are decoded only after the
whole string has been parsed, so a decode error took the location of
the last token. The resulting SyntaxError pointed at the closing quote,
and for multi-line strings it could be on the wrong line.

Raise the error at the literal part being decoded instead.
2026-10-23 15:29:41 -07:00
..
2025-05-04 23:46:21 +00:00