Talk Python To Me cover image

#505: t-strings in Python (PEP 750)

Talk Python To Me

00:00

Choose Strings or Templates Wisely

  • Use F-strings when you need direct string formatting; use T-strings for safer interpolations requiring processing.
  • Library authors should type functions carefully and consider accepting only templates or strings, not both.
Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app