We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b58f00 commit 14ad4c0Copy full SHA for 14ad4c0
1 file changed
extra_tests/snippets/syntax_fstring.py
@@ -31,6 +31,10 @@
31
assert fr'x={4*10}\n' == 'x=40\\n'
32
assert f'{16:0>+#10x}' == '00000+0x10'
33
assert f"{{{(lambda x: f'hello, {x}')('world}')}" == '{hello, world}'
34
+assert f"""{f'''{f"{f'{foo}'}"}'''}""" == 'bar'
35
+assert f"""{1:{1}{f'n'}}""" == '1'
36
+assert f'{ {1}.pop()}' == '1'
37
+assert f"""{1:{{1}.pop()}{f'n'}}""" == '1'
38
39
40
# base test of self documenting strings
0 commit comments