Template strings, or t-strings, will be introduced in Python 3.14 to enhance safe and flexible string processing. Unlike f-strings, t-strings evaluate to a new type, Template, which must be processed before use, allowing developers to safely escape dynamic content. This new feature is expected to reduce risks like SQL injection
5 Comments
Sort: