Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
blami
23 days ago
|
parent
|
context
|
favorite
| on:
PEP 750 – Template Strings
I am not very familiar with Python. How do you localize (translate) first one?
wzdd
21 days ago
|
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
15 days ago
|
prev
[–]
That's what t-strings are about. They are lazy, so you can mark them for translation "as-is".
Consider applying for YC's Summer 2025 batch! Applications are open till May 13
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: