Deutsch English Français Italiano |
<utkhbc$32kac$2@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Chris Ahlstrom <OFeem1987@teleworm.us> Newsgroups: comp.os.linux.advocacy Subject: Re: Tabs As Syntax Date: Fri, 22 Mar 2024 14:06:36 -0400 Organization: None Lines: 23 Message-ID: <utkhbc$32kac$2@dont-email.me> References: <17be73f7d87a06e9$246570$4075406$802601b3@news.usenetexpress.com> <utejt0$1fq95$1@dont-email.me> <uterkv$1haln$2@dont-email.me> <l624u3Fn16lU13@mid.individual.net> <uthc9v$27npc$1@dont-email.me> <l64bbaF2m1hU16@mid.individual.net> <utk70k$305bf$3@dont-email.me> Reply-To: OFeem1987@teleworm.us Injection-Date: Fri, 22 Mar 2024 18:06:36 -0000 (UTC) Injection-Info: dont-email.me; posting-host="7be2011231067dac7dad055ad83a661d"; logging-data="3232076"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18C/P5v05fULfQu2kpxPwi2" User-Agent: slrn/1.0.3 (Linux) Cancel-Lock: sha1:1MLLvg+6vEXu62D+1Hwui8SQxxk= X-Mutt: The most widely-used MUA X-User-Agent: Microsoft Outl00k, Usenet K00k Editions X-Slrn: Why use anything else? Bytes: 2115 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.