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