/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Python’s new t-strings
(davepeck.org)
620 points
tambourine_man
| 1 comments |
21 Apr 25 04:31 UTC
|
HN request time: 0.205s
|
source
Show context
avereveard
◴[
21 Apr 25 07:14 UTC
]
No.
43749173
[source]
▶
>>43748512 (OP)
#
what's the tldr difference between this and .format ?
replies(4):
>>43749190
#
>>43749387
#
>>43749636
#
>>43750013
#
1.
earnestinger
◴[
21 Apr 25 07:55 UTC
]
No.
43749387
[source]
▶
>>43749173
#
It’s custom .format implementation. (You access the placeholder and value and produce the string)
ID:
GO
↑