News for hackers. Stuff that matters.
Re:Python f-strings are the best syntax sugar i never knew a... by kristoff_it on Wednesday January 24, 2018 @09:28AM (#16222900)
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.

Re:Python f-strings are the best syntax sugar i never knew a... by pyedpiper on Wednesday January 24, 2018 @01:21PM (#16224952)
true 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/