4 ms·
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:
by nhumrich 1y ago
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