Closed derrix060 closed 4 years ago
Whilst I believe f-strings are much better and cleaner than the .format
style, the future-fstrings project seems a little dodgy and (not that I have seen any) likely to break. I think we should use that project's cli script to generate .format
style files and continue to use them.
@derrix060 I would like to work on this. So if I understand correctly, I am supposed to remove all f-strings and manually replace it with .format
style?
You could manually replace it or using the future-fstrings project's CLI tool for converting f-strings to format-strings and then replace the updated files.
So, yes.
I tried grepping but couldn't figure out a way for manually finding all the f-strings. can you help me out @Modelmat
Sorry for the delay, I was on holidays.
Thanks for the interest @sameshl. Yes, the idea is changing the f-strings (f'... {var} ...'
) to .format
style ('... {} ...'.format(var)
)
use import from future to make it compatible with python 3.6
i didnt find any f-string, please show me
@RobatBender you're right, someone might have done it already.
F-strings were introduced on python 3.6 but this project is compatible with python 3.4 +.
Rather remove all f-strings and manually replace it, or use this project