~/talk

"Disentangling formatted strings with T-strings"

Talkat PyCon AU 2026 · 2026-08-26..08-30· [python]
slides:none on file

Python 3.14 adds t-strings that evaluate to a Template type not a plain string, exposing an interpolation object (value, expression, conversion, format spec) so library code can sanitize or transform parts before final rendering. Intended audience is template-processing and framework authors, not casual app writers; functions can type-check for Template vs f-string and reject unsafe inputs. The claim is that separating template and data prevents injection classes like SQLi and XSS, but safety depends on libraries adopting and implementing the sanitizers.

AI-written summary · about

  1. 0:00T-strings intro
  2. 2:03Python string formatting evolution
  3. 4:33String interpolation risks
  4. 7:02T-strings purpose
  5. 10:56Guardrails in Python/T-strings
  6. 13:25Pattern matching T-strings
  7. 16:59T-strings key takeaways
  8. 18:44Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.