Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
blami
on April 13, 2025
|
parent
|
context
|
favorite
| on:
PEP 750 – Template Strings
I am not very familiar with Python. How do you localize (translate) first one?
wzdd
on April 15, 2025
|
next
[–]
You don't with f-strings because they're substituted eagerly. You could with the new t-strings proposed here because you can get at the individual parts.
BiteCode_dev
on April 21, 2025
|
prev
[–]
That's what t-strings are about. They are lazy, so you can mark them for translation "as-is".
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: