8000 gh-129958: New syntax error in format spec applies to both f-strings and t-strings by dylwil3 · Pull Request #135570 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-129958: New syntax error in format spec applies to both f-strings and t-strings #135570

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 26, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
whitespace
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
  • Loading branch information
dylwil3 and tomasr8 committed Jun 24, 2025
commit 256da628051052044c1e540d254c2bc430e2eec4
2 changes: 1 addition & 1 deletion Parser/lexer/lexer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ tok_get_fstring_mode(struct tok_state *tok, tokenizer_mode* current_tok, struct
_PyTokenizer_syntaxerror(
tok,
"%c-string: newlines are not allowed in format specifiers for single quoted %c-strings",
TOK_GET_STRING_PREFIX(tok),TOK_GET_STRING_PREFIX(tok)
TOK_GET_STRING_PREFIX(tok), TOK_GET_STRING_PREFIX(tok)
)
);
}
Expand Down
0