Fix FORMAT_VALUE for values that have both a conversion and a format_spec.
Also output the conversion and flags in disassembly.
This commit is contained in:
Binary file not shown.
@@ -28,10 +28,11 @@ print(f'{var3 * x} {var3:.2f} {var3:.5f} {x:02} {x*x:3} {x*x*x:4} {s1:>10} {a:x}
|
||||
print(f'''some {{braces}} {"inner literal: {braces} {{double braces}}"}''')
|
||||
print(f'''f-string dict {some_dict[2]} and {{function call in expression}}: {max([1,20,3])}''')
|
||||
print(f'{(lambda x: x*2)(3)}')
|
||||
print(f'{var3!s:4.5}')
|
||||
msg = (
|
||||
f'a {var1}'
|
||||
f'cool'
|
||||
f'multiline {var2}\n'
|
||||
f'f-string {var3}'
|
||||
)
|
||||
print(f'{now:%Y-%m-%d %H:%M}')
|
||||
print(f'{now:%Y-%m-%d %H:%M}')
|
||||
|
||||
@@ -27,5 +27,6 @@ print ( f'{var3 * x} {var3:.2f} {var3:.5f} {x:02} {x * x:3} {x * x * x:4} {s1:>1
|
||||
print ( f'some {{braces}} {\'inner literal: {braces} {{double braces}}\'}' ) <EOL>
|
||||
print ( f'f-string dict {some_dict[2]} and {{function call in expression}}: {max([\n 1,\n 20,\n 3])}' ) <EOL>
|
||||
print ( f'{(lambda x: x * 2)(3)}' ) <EOL>
|
||||
print ( f'{var3!s:4.5}' ) <EOL>
|
||||
msg = f'a {var1}coolmultiline {var2}\nf-string {var3}' <EOL>
|
||||
print ( f'{now:%Y-%m-%d %H:%M}' ) <EOL>
|
||||
|
||||
Reference in New Issue
Block a user