]> git.madduck.net Git - etc/vim.git/blob - tests/data/pep_572_do_not_remove_parens.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

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