/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Python’s new t-strings
(davepeck.org)
620 points
tambourine_man
| 2 comments |
21 Apr 25 04:31 UTC
|
HN request time: 0.955s
|
source
1.
russfink
◴[
21 Apr 25 12:36 UTC
]
No.
43751271
[source]
▶
>>43748512 (OP)
#
I feel like this can be solved another way. S=f”my good code #### {potentially_evil_user_input} #### my good code again” then work around the ####. Of course, even better, S=evil_user_input and do a scrub on S first.
replies(1):
>>43751304
#
ID:
GO
2.
JohnKemeny
◴[
21 Apr 25 12:46 UTC
]
No.
43751390
[source]
▶
>>43751304
#
As they mention in PEP 750,"we expect many more developers will use t-strings than write t-string processing functions."
↑