Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i love f-strings
#1
i love f-strings. i'm using them all over the place, now. most of my error messages are f-strings with expanded detail about the error.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
It's all I ever use for printing and/or formatting strings anymore
Reply
#3
my scripts used to not support Python 2.X. now they don't support anything lower than 3.6.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
Now you're thinking!
Reply
#5
Press f to pay formatted respects

def f(f):
    return f

print(f'{f("f")}')
Reply
#6
i did use format() the other day. don't remember why i needed to. but i think i could live with that function being gone.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Love for Python nexusfactor 7 5,087 Oct-19-2017, 03:27 AM
Last Post: Skaperen
  Love that snow Larz60+ 10 7,766 Feb-09-2017, 11:30 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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