File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 11
11
with break continue del exec return pass print raise global assert lambda yield
12
12
for while if elif else import from as try except finally and in is not or
13
13
14
+ from test import var as name
15
+
14
16
yield from
15
17
16
18
def functionname
@@ -61,11 +63,13 @@ async def Test
61
63
62
64
# Numbers
63
65
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
65
68
66
69
# Erroneous numbers
67
70
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
69
73
70
74
# Strings
71
75
@@ -103,6 +107,10 @@ async def Test
103
107
"${test} ${test ${test}aname $$$ $test+nope"
104
108
b"${test} ${test ${test}aname $$$ $test+nope"
105
109
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
+
106
114
# Doctests.
107
115
108
116
"""
You can’t perform that action at this time.
0 commit comments