2 questions
Advice
0
votes
0
replies
18
views
How can I split a Python template string into an array like Ruby's %W[...] operator does?
Basically I want to split the template string by literal whitespace (we don't have to worry about escape chars for these purposes) and produce an array of strings, where bracketed arguments with space ...
13
votes
2
answers
3k
views
How are Python 3.14 t-strings different than f-strings
Python 3.14 is introducing template strings, so-called t-strings. Can someone explain how these differ from f-strings? What new problems are t-strings helping developers solve?