| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,7 +136,7 @@ arglist: argument (',' argument)* [','] | |||
| 136 | 136 | # that precede iterable unpackings are blocked; etc. | |
| 137 | 137 | argument: ( test [comp_for] | | |
| 138 | 138 | test '=' test | | |
| 139 | - '**' expr | | ||
| 139 | + '**' test | | ||
| 140 | 140 | star_expr ) | |
| 141 | 141 | ||
| 142 | 142 | comp_iter: comp_for | comp_if | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -206,6 +206,7 @@ def d01(a=1): pass | |||
| 206 | 206 | d01(1) | |
| 207 | 207 | d01(*(1,)) | |
| 208 | 208 | d01(**{'a':2}) | |
| 209 | + d01(**{'a':2} or {}) | ||
| 209 | 210 | def d11(a, b=1): pass | |
| 210 | 211 | d11(1) | |
| 211 | 212 | d11(1, 2) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2871,7 +2871,7 @@ validate_argument(node *tree) | |||
| 2871 | 2871 | ||
| 2872 | 2872 | if (res) { | |
| 2873 | 2873 | if (TYPE(CHILD(tree, 0)) == DOUBLESTAR) { | |
| 2874 | - res = validate_expr(CHILD(tree, 1)); | ||
| 2874 | + res = validate_test(CHILD(tree, 1)); | ||
| 2875 | 2875 | } | |
| 2876 | 2876 | else if (nch == 1) { | |
| 2877 | 2877 | res = validate_test_or_star_expr(CHILD(tree, 0)); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1748,24 +1748,20 @@ static arc arcs_78_0[3] = { | |||
| 1748 | 1748 | }; | |
| 1749 | 1749 | static arc arcs_78_1[3] = { | |
| 1750 | 1750 | {164, 3}, | |
| 1751 | - {31, 4}, | ||
| 1751 | + {31, 2}, | ||
| 1752 | 1752 | {0, 1}, | |
| 1753 | 1753 | }; | |
| 1754 | 1754 | static arc arcs_78_2[1] = { | |
| 1755 | - {107, 3}, | ||
| 1755 | + {26, 3}, | ||
| 1756 | 1756 | }; | |
| 1757 | 1757 | static arc arcs_78_3[1] = { | |
| 1758 | 1758 | {0, 3}, | |
| 1759 | 1759 | }; | |
| 1760 | - static arc arcs_78_4[1] = { | ||
| 1761 | - {26, 3}, | ||
| 1762 | - }; | ||
| 1763 | - static state states_78[5] = { | ||
| 1760 | + static state states_78[4] = { | ||
| 1764 | 1761 | {3, arcs_78_0}, | |
| 1765 | 1762 | {3, arcs_78_1}, | |
| 1766 | 1763 | {1, arcs_78_2}, | |
| 1767 | 1764 | {1, arcs_78_3}, | |
| 1768 | - {1, arcs_78_4}, | ||
| 1769 | 1765 | }; | |
| 1770 | 1766 | static arc arcs_79_0[2] = { | |
| 1771 | 1767 | {164, 1}, | |
@@ -2021,7 +2017,7 @@ static dfa dfas[85] = { | |||
| 2021 | 2017 | "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\001"}, | |
| 2022 | 2018 | {333, "arglist", 0, 3, states_77, | |
| 2023 | 2019 | "\000\040\200\000\006\000\000\000\000\000\004\000\000\000\010\001\000\140\110\224\017\000"}, | |
| 2024 | - {334, "argument", 0, 5, states_78, | ||
| 2020 | + {334, "argument", 0, 4, states_78, | ||
| 2025 | 2021 | "\000\040\200\000\006\000\000\000\000\000\004\000\000\000\010\001\000\140\110\224\017\000"}, | |
| 2026 | 2022 | {335, "comp_iter", 0, 2, states_79, | |
| 2027 | 2023 | "\000\000\000\000\000\000\000\000\000\000\000\000\021\000\000\000\000\000\000\000\000\000"}, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments