/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.218s
|
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
#
jitl
◴[
21 Apr 25 07:17 UTC
]
No.
43749190
[source]
▶
>>43749173
#
It’s injection safe and compostable, and the resulting object retains the original values you interpolate in. This makes it useful for building SQL queries with prepared arguments for example.
replies(2):
>>43749226
#
>>43749959
#
1.
pwdisswordfishz
◴[
21 Apr 25 09:33 UTC
]
No.
43749959
[source]
▶
>>43749190
#
Compostable? The Green New Deal has gone too far.
ID:
GO
↑