It seems that this is not supported by Anvil?
somevar='hello'
print(f'{somevar=}')
yields:
SyntaxError: invalid syntax (<fstring>, line 1)
at <fstring>:1
This is the expected output:
somevar='hello'
It seems that this is not supported by Anvil?
somevar='hello'
print(f'{somevar=}')
yields:
SyntaxError: invalid syntax (<fstring>, line 1)
at <fstring>:1
This is the expected output:
somevar='hello'
That syntax was introduced in python 3.8. The client side and server side implementations of python are based on python 3.7.
If you’re using the python 3.10 beta on the server it’ll work there.
Ah, I thought we were all on 3.10 because I saw “Full python 3”. Hadn’t noticed the 3.10 beta option.
Selected that now and it works. Learn something every day