Hands on with Python t-strings

Опубликовано: 16 June 2026
на канале: Anthony Shaw
828
32

Showcasing a new feature in Python 3.14 - "t-strings".

t-strings are way of composing templates in Python, to customize what you would otherwise do in f-strings. They are great for making reusable templates, adding custom logic or sanitization code.

In this video, I show a little demo of how they could be useful.

Code: https://github.com/tonybaloney/tea-st...

00:00 t-strings on the REPL
02:40 Where to use t-strings
06:12 Calling functions in templates
08:15 Customizing Interpolation
10:50 Other examples

#python #programming