←back to thread

620 points tambourine_man | 1 comments | | HN request time: 0.212s | source
Show context
metrognome ◴[] No.43754478[source]
Zen of Python in 2025:

  There should be one-- and preferably only one --obvious way to do it.
Python String Formatting in 2025:

- t-strings

- f-strings

- %-operator

- +-operator

- str.format()

replies(4): >>43754501 #>>43754671 #>>43756716 #>>43756756 #
1. hughw ◴[] No.43756756[source]
I could scarcely believe this new t-string wasn't a joke. As an occasional, grudging Python programmer, I rue the accretion of string formatters over the years. My code bears the history of successive, imperfectly understood (by me)formatters.

"Situation: There are 14 competing standards...." https://xkcd.com/927/