]> git.madduck.net Git - etc/vim.git/blob - tests/data/fstring.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:

Remove deprecated --py36 option (#1236)
[etc/vim.git] / tests / data / fstring.py
1 f"f-string without formatted values is just a string"
2 f"{{NOT a formatted value}}"
3 f"{{NOT 'a' \"formatted\" \"value\"}}"
4 f"some f-string with {a} {few():.2f} {formatted.values!r}"
5 f'some f-string with {a} {few(""):.2f} {formatted.values!r}'
6 f"{f'''{'nested'} inner'''} outer"
7 f"\"{f'{nested} inner'}\" outer"
8 f"space between opening braces: { {a for a in (1, 2, 3)}}"
9 f'Hello \'{tricky + "example"}\''
10
11 # output
12
13 f"f-string without formatted values is just a string"
14 f"{{NOT a formatted value}}"
15 f'{{NOT \'a\' "formatted" "value"}}'
16 f"some f-string with {a} {few():.2f} {formatted.values!r}"
17 f'some f-string with {a} {few(""):.2f} {formatted.values!r}'
18 f"{f'''{'nested'} inner'''} outer"
19 f"\"{f'{nested} inner'}\" outer"
20 f"space between opening braces: { {a for a in (1, 2, 3)}}"
21 f'Hello \'{tricky + "example"}\''