Python Forum
i love f-strings - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Forum & Off Topic (https://python-forum.io/forum-23.html)
+--- Forum: Bar (https://python-forum.io/forum-27.html)
+--- Thread: i love f-strings (/thread-20870.html)



i love f-strings - Skaperen - Sep-04-2019

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.


RE: i love f-strings - Larz60+ - Sep-04-2019

It's all I ever use for printing and/or formatting strings anymore


RE: i love f-strings - Skaperen - Sep-05-2019

my scripts used to not support Python 2.X. now they don't support anything lower than 3.6.


RE: i love f-strings - Larz60+ - Sep-05-2019

Now you're thinking!


RE: i love f-strings - dullbananas - Dec-08-2019

Press f to pay formatted respects

def f(f):
    return f

print(f'{f("f")}')



RE: i love f-strings - Skaperen - Dec-08-2019

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.