Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zahlman
53 days ago
|
parent
|
context
|
favorite
| on:
Fstrings.wtf
"String interpolation" is a term for the purpose that the string.format syntax serves.
almostgotcaught
53 days ago
[–]
no it's not - string interpolation means inlining values and such. format strings long predate string interpolation
https://en.wikipedia.org/wiki/Printf
oasisaimlessly
53 days ago
|
parent
[–]
Python 2.7 called its % operator the "string interpolation" operator[1], and it doesn't allow inline values.
[1]:
https://docs.python.org/2.7/library/stdtypes.html#string-for...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: