This commit is contained in:
Aralox
2020-10-20 16:42:19 +11:00
parent 1f07a24451
commit 7af40a779f
6 changed files with 19 additions and 23 deletions

Binary file not shown.

View File

@@ -34,9 +34,4 @@ msg = (
f'multiline {var2}\n'
f'f-string {var3}'
)
# Commented out because LOAD_/CALL_METHOD not supported. https://github.com/zrax/pycdc/issues/163
# The f-string will decompile correctly, however.
# import datetime
# datetime.date(2015,9,29)
#print(f'{now:%Y-%m-%d %H:%M}')
print(f'{now:%Y-%m-%d %H:%M}')

View File

@@ -30,3 +30,4 @@ print ( f'some {{braces}} {\'inner literal: {braces} {{double braces}}\'}' ) <EO
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>
msg = f'a {var1}coolmultiline {var2}\nf-string {var3}' <EOL>
print ( f'{now:%Y-%m-%d %H:%M}' ) <EOL>