this post was submitted on 02 May 2026
42 points (100.0% liked)

Python

7910 readers
6 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

πŸ“… Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
πŸ’“ Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] olafurp@lemmy.world 9 points 1 week ago (1 children)

I worked in python when f-strings were pretty new. Didn't realise why you would use anything else. It just reads better.

[–] Michal@programming.dev 4 points 1 week ago (1 children)

Most importantly you can't use them with translated strings, so it's not usable for user facing strings unless you don't care. This limits fstring usefulness a lot in the projects I work on.

[–] Badabinski@kbin.earth 8 points 1 week ago

Luckily, there's now t-strings (e.g. t"{buh}") for that use case (among many others). Here's the PEP: https://peps.python.org/pep-0750/