What is PEP 750 and template strings?
New features in Python 3.13 and 3.14
Audio flashcard · 0:21Nortren·
What is PEP 750 and template strings?
0:21
PEP 750 introduces template string literals, called t-strings, in Python 3.14. A t-string looks like an f-string with a t prefix but produces a Template object instead of a finished string. The Template exposes static parts and interpolations, letting libraries process them safely for SQL queries, HTML output, shell commands, and other contexts where escaping matters.
---
peps.python.org