Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nhumrich
on April 21, 2025
|
parent
|
context
|
favorite
| on:
Python’s new t-strings
I suggest you read the PEP, there is a section on i18n. Short version is it's not designed for this use case.
As for variables and arbitrary code/lambdas, yes: t-strings can do that, just like f-strings
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
As for variables and arbitrary code/lambdas, yes: t-strings can do that, just like f-strings