Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add additional test on 3.9 and fix some typos
- Loading branch information
Showing
2 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Unparenthesized warluses are now allowed in indices since Python 3.10. | ||
# Unparenthesized walruses are now allowed in indices since Python 3.10. | ||
x[a:=0] | ||
x[a:=0, b:=1] | ||
x[5, b:=0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# Unparenthesized warluses are now allowed in set lterals & set comprehensions | ||
# Unparenthesized walruses are now allowed in set literals & set comprehensions | ||
# since Python 3.9 | ||
{x := 1, 2, 3} | ||
{x4 := x ** 5 for x in range(7)} | ||
# We better not remove the parentheses here (since it's a 3.10 feature) | ||
x[(a := 1)] | ||
x[(a := 1), (b := 3)] |