Python Forum
instructing f-string over format()
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
instructing f-string over format()
#1
f-string are awesome, but there are times when i like to continue to use format method. For example when i want to simplify the string and not pollute it with a bunch of expressions. Sometimes its nice to split them off. The string can get a little messy, i think.

However everyone instructs to use f strings over format. IF at any point format method was to become obsolete, then i would agree to get comfortable using f string all the time. But i dont think that is going to go. In that case we are going to have f strings and format method side by side.

Im just curious as to what others think? I remmeber a discussion about it when it was new, but nothing much lately.
Recommended Tutorials:
Reply


Messages In This Thread
instructing f-string over format() - by metulburr - Jul-13-2019, 12:27 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020