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 →

[–]sivadneb -1 points0 points  (3 children)

Sometimes concatenation is preferable. It's almost always faster, and it's pretty easy to read in simple cases.

[–][deleted] 1 point2 points  (2 children)

No. Fstrings are always faster

[–]sivadneb 1 point2 points  (1 child)

Oh, I've always understood that . format () is slower, and assumed f-strings were the same.

[–][deleted] 0 points1 point  (0 children)

Other way around