Commit 5244e21
committed
bpo-42374: Allow unparenthesized walrus in genexps (pythonGH-23319)
This fixes a regression that was introduced by the new parser.
(cherry picked from commit cb3e5ed)1 parent cf70854 commit 5244e21
4 files changed
Lines changed: 18 additions & 7 deletions
File tree
- Grammar
- Lib/test
- Misc/NEWS.d/next/Core and Builtins
- Parser/pegen
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
516 | 525 | | |
517 | 526 | | |
518 | 527 | | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11381 | 11381 | | |
11382 | 11382 | | |
11383 | 11383 | | |
11384 | | - | |
| 11384 | + | |
11385 | 11385 | | |
11386 | 11386 | | |
11387 | 11387 | | |
| |||
11401 | 11401 | | |
11402 | 11402 | | |
11403 | 11403 | | |
11404 | | - | |
| 11404 | + | |
11405 | 11405 | | |
11406 | 11406 | | |
11407 | 11407 | | |
11408 | 11408 | | |
11409 | | - | |
| 11409 | + | |
11410 | 11410 | | |
11411 | 11411 | | |
11412 | 11412 | | |
| |||
11415 | 11415 | | |
11416 | 11416 | | |
11417 | 11417 | | |
11418 | | - | |
| 11418 | + | |
11419 | 11419 | | |
11420 | 11420 | | |
11421 | 11421 | | |
| |||
11424 | 11424 | | |
11425 | 11425 | | |
11426 | 11426 | | |
11427 | | - | |
| 11427 | + | |
11428 | 11428 | | |
11429 | 11429 | | |
11430 | 11430 | | |
| |||
11444 | 11444 | | |
11445 | 11445 | | |
11446 | 11446 | | |
11447 | | - | |
| 11447 | + | |
11448 | 11448 | | |
11449 | 11449 | | |
11450 | 11450 | | |
| |||
0 commit comments