2 ms·
I don't think we have a single f-string in the entire Python 3.7 codebase in the project I'm working on. They seem rather useless to me. I often pass a string l
by Grue3 6y ago
I don't think we have a single f-string in the entire Python 3.7 codebase in the project I'm working on. They seem rather useless to me. I often pass a string like 'this is a template with {var}' into another function that uses .format(var=something) to fill out the template. This seems impossible with f-strings. On the other hand everything that f-string can do can be just as easily done with .format, except in a more explicit and Pythonic way.