Sujet : Re: Tabs As Syntax
De : OFeem1987 (at) *nospam* teleworm.us (Chris Ahlstrom)
Groupes : comp.os.linux.advocacyDate : 22. Mar 2024, 20:06:36
Autres entêtes
Organisation : None
Message-ID : <utkhbc$32kac$2@dont-email.me>
References : 1 2 3 4 5 6 7
User-Agent : slrn/1.0.3 (Linux)
candycanearter07 wrote this copyrighted missive and expects royalties:
rbowman <bowman@montana.com> wrote at 03:13 this Friday (GMT):
On Thu, 21 Mar 2024 09:22:06 -0400, DFS wrote:
>
for i in range(2,11): print("%d made %d look like a foo^2" % (i*i,i))
>
Embrace f strings. Unless you're running an obsolete version of course.
>
Some of the improvements leave me with a yawn but I use
>
$"The quick red {animal} jumped over the brain dead Windows {user}"
>
so I really liked that addition. Yeah, the % is sort of like C but half
the time I screw up the tuple. format was more work too.
>
f-strings are so nice, especially since you can use it as arguments for
other functions and don't have to rely on a temporary string var.
Those sound like the formatting available for C# String.
-- You own a dog, but you can only feed a cat.