Debian Codegraph @

tests/data/cases/pep_572_do_not_remove_parens.py

raw
1 # flags: --fast
2 # Most of the following examples are really dumb, some of them aren't even accepted by Python,
3 # we're fixing them only so fuzzers (which follow the grammar which actually allows these
4 # examples matter of fact!) don't yell at us :p
5
6 del (a := [1])
7
8 try:
9 pass
10 except (a := 1) as (b := why_does_this_exist):
11 pass
12
13 for (z := 124) in (x := -124):
14 pass
15
16 with (y := [3, 2, 1]) as (funfunfun := indeed):
17 pass
18
19
20 @(please := stop)
21 def sigh():
22 pass
23
24
25 for (x := 3, y := 4) in y:
26 pass