/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.299s
|
source
Show context
runekaagaard
◴[
21 Apr 25 08:32 UTC
]
No.
43749575
[source]
▶
>>43748512 (OP)
#
It feels a bit like "cheating" that new x-string features are built-in only. It would be cool to be able to do:
from foo import bar bar"zoop"
replies(7):
>>43749594
#
>>43749601
#
>>43749709
#
>>43750748
#
>>43751130
#
>>43752217
#
>>43757083
#
1.
thund
◴[
21 Apr 25 08:53 UTC
]
No.
43749709
[source]
▶
>>43749575
#
Use a function?
bar(“zoop”)
It’s just syntax, like we used to have
print “foo”
that later became
print(“foo”)
ID:
GO
↑