Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-124363: Treat debug expressions in f-string as raw strings#128399

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pablogsal merged 5 commits intopython:mainfrompablogsal:gh-124363
Jan 22, 2025
Merged
Changes from1 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
PrevPrevious commit
NextNext commit
Update Parser/action_helpers.c
  • Loading branch information
@pablogsal
pablogsal committedJan 22, 2025
commit13f4e21578f635b8f34b23b5211a769783b656e2
4 changes: 3 additions & 1 deletionParser/action_helpers.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1311,7 +1311,9 @@ _PyPegen_joined_str(Parser *p, Token* a, asdl_expr_seq* expr, Token*b) {
expr_ty item = asdl_seq_GET(expr, i);

// This should correspond to a JoinedStr node of two elements
// created _PyPegen_formatted_value
// created _PyPegen_formatted_value. This situation can only be the result of
// a f-string debug expression where the first element is a constant with the text and the second
// a formatted value with the expression.
if (item->kind == JoinedStr_kind) {
asdl_expr_seq *values = item->v.JoinedStr.values;
if (asdl_seq_LEN(values) != 2) {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp