File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 1111with break continue del exec return pass print raise global assert lambda yield
1212for while if elif else import from as try except finally and in is not or
1313
14+ from test import var as name
15+
1416yield from
1517
1618def functionname
@@ -61,11 +63,13 @@ async def Test
6163
6264# Numbers
6365
64- 0 1 2 9 10 0x1f .3 12.34 0j 0j 34.2E-3 0b10 0o77 1023434 0x0
66+ 0 1 2 9 10 0x1f .3 12.34 0j 124j 34.2E-3 0b10 0o77 1023434 0x0
67+ 1_1 1_1.2_2 1_2j 0x_1f 0x1_f 34_56e-3 34_56e+3_1 0o7_7
6568
6669# Erroneous numbers
6770
68- 077 100L 0xfffffffL 0L 08 0 xk 0 x 0b10 2 0o7 8 0o123L aB
71+ 077 100L 0xfffffffL 0L 08 0 xk 0 x 0b10 2 0o7 8 0o123L aB
72+ 0_ 0_1 0_ x1f 0x1f _ 0_ b77 0 b77_ .2_ 1_j
6973
7074# Strings
7175
@@ -103,6 +107,10 @@ async def Test
103107"${test} ${test ${test}aname $$$ $test+nope"
104108b"${test} ${test ${test}aname $$$ $test+nope"
105109
110+ f"{ var } ...{ arr [123 ]} normal { var ['{' ] // 0xff } \" xzcb\" 'xzcb' { var ['}' ] + 1 } text"
111+ f"{ expr1 if True or False else expr2 } wow { ',' .join (c .lower () for c in 'asdf' )} "
112+ f"hello { expr :.2f} yes { (lambda : 0b1 )():#03x} lol { var !r} "
113+
106114# Doctests.
107115
108116"""
You can’t perform that action at this time.
0 commit comments