4 ms·
Templated strings are great for when, as the name suggests, you want to create a string with some placeholders to be expanded at a later time. When you just wa
by kristoff_it 9y ago
Templated strings are great for when, as the name suggests, you want to create a string with some placeholders to be expanded at a later time.
When you just want to interpolate a string on the fly, Fstrings are absolutely the right thing to do most of the time.
- pyedpiper 9y agotrue but it seems that the performance gap is pretty huge and the new f-strings actually come in on top for string substitution: https://cito.github.io/blog/f-strings/ https://cito.github.io/blog/f-strings/