After the introduction of f-strings on PEP-498, using strings and variables in general to produce desired output text became simpler and easier. But f-strings still lack some desired features such as transformation, customization and the most important: security checks (such as SQL injection or XSS). PEP-750 aims to solve those issues with t-strings, by giving flexibility and control to developers, with a familiar and already known syntax.
In this presentation we’ll go over how t-strings work, good examples of actually using them, compare it against already existing solutions, and how we intend to change the way we write our DSL (Domain Specific Language) to use t-strings. I’ll also discuss some potential drawbacks and things to keep in mind about t-strings.
The talk is targeted for intermediate pythonistas. People who are just starting with Python may feel a bit lost, but I'll try my best to make it easy for all audiences. After this presentation, participants will learn about this new template system, how to use it, and compare it against existing alternatives.