I do advice to use f-string,sometime i do comparisons with .foramt() and other time not.
If it not was better i would not have advice so much,but it's more readable and concise,less prone to error than other ways of formatting.
I use f-string in all i do and never .format() anymore.
Eg a lot people use Black,and very few complain anymore that's it only 3.6+.
If it not was better i would not have advice so much,but it's more readable and concise,less prone to error than other ways of formatting.
I use f-string in all i do and never .format() anymore.
ichabod801 Wrote:My problem with f-string promotion is that f-strings are fine and dandy if you are not planning on supporting anything before 3.6.Yes if planing to support < 3.6 then drop the new stuff,also support of only 3.6+ if not a problem these days.
Eg a lot people use Black,and very few complain anymore that's it only 3.6+.
Black Wrote:Black can be installed by running pip install black
. It requires Python 3.6.0+ to run but you can reformat Python 2 code with it, too.