Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
_optl
on Dec 17, 2015
|
parent
|
context
|
favorite
| on:
Why Python 3 Exists
Let's not also forget string.Template ;)
https://docs.python.org/2/library/string.html#string.Templat...
sevensor
on Dec 17, 2015
[–]
I actually found a good use for string.Template, but that doesn't mean I understand why it exists in addition to the other two formatting sub-languages.
mixmastamyk
on Dec 17, 2015
|
parent
[–]
It was created long before .format and is better in some cases for i18n where simplicity is best.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://docs.python.org/2/library/string.html#string.Templat...