Python's new t-strings

Viewed 63
Python has introduced a new string format called "t-strings" aimed at simplifying certain use cases for embedding interpreters and potentially streamlining SQL query syntax. While some users see this as an opportunity for cleaner code especially in libraries like psycopg3, others express concern about the proliferation of string prefixes in Python, suggesting that the language could become overcrowded with formatting options. The community debate highlights the need for adjustments to existing tools while maintaining backward compatibility for previous string formatting methods. The interest also raises questions about the readability of code when using a variety of string formats in more extensive codebases.
0 Answers