10000 Update Parser/action_helpers.c · python/cpython@13f4e21 · GitHub
[go: up one dir, main page]

Skip to content

Commit 13f4e21

Browse files
committed
Update Parser/action_helpers.c
1 parent e3d2f73 commit 13f4e21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Parser/action_helpers.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,9 @@ _PyPegen_joined_str(Parser *p, Token* a, asdl_expr_seq* expr, Token*b) {
13111311
expr_ty item = asdl_seq_GET(expr, i);
13121312

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

0 commit comments

Comments
 (0)
0