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

Commit6b12aee

Browse files
committed
Allow named expression in set comprehension:{a := b for c in d}
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
1 parent71a278c commit6b12aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎compiler/parser/python.lalrpop‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ Atom<Goal>: ast::Expr = {
11851185
custom: (),
11861186
node: ast::ExprKind::Set { elts }
11871187
},
1188-
<location:@L> "{" <elt:Test<"all">> <generators:CompFor> "}" <end_location:@R> => {
1188+
<location:@L> "{" <elt:NamedExpressionTest> <generators:CompFor> "}" <end_location:@R> => {
11891189
ast::Expr {
11901190
location,
11911191
end_location: Some(end_location),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp