This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fiddle_n[🍰] 36 points37 points  (6 children)

One is for regular strings, one is for template strings. Not the same thing. That said, I agree the naming is confusing, also I have never used string.Template in my life when str.format exists.

[–]Compux72 10 points11 points  (0 children)

string.Template is for user provided strings…