[TUHS] [TULSA] Re: python

Will Senn will.senn at gmail.com
Fri Aug 4 09:54:33 AEST 2023


On 8/3/23 18:47, Larry McVoy wrote:
> On Thu, Aug 03, 2023 at 12:57:31PM -0400, Phil Budne wrote:
>> On the subject of "no printf", there is not one, not two, but THREE
>> ways to format strings, easily compounded with print:
>>
>> 	print("%s %s" % ("hello", "world"))
>> 	print("{1} {two}".format("hello", two="world"))
>> 	print(f"{greeting} {populace}")
>>
>> I'm pretty sure the last method (which initially made me vomit, due to
> All of those make me vomit.  Pretty much every sane language has printf.
Tell us how you really feel :). But, I couldn't agree more. I worked 
really hard to get printf and sprintf down and then folks started doing 
it "right" and "better" or renaming it but watering it down - ugh! I 
say, we picket.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tuhs.org/pipermail/tuhs/attachments/20230803/dbdd128a/attachment.htm>


More information about the TUHS mailing list