Computer Old Farts Forum
 help / color / mirror / Atom feed
From: Larry McVoy <lm@mcvoy.com>
To: Ralph Corderoy <ralph@inputplus.co.uk>
Cc: coff@tuhs.org
Subject: [COFF] Re: Useful Shell Scripts Network Connections , Logins and Block hacking attempts
Date: Fri, 12 May 2023 06:58:18 -0700	[thread overview]
Message-ID: <20230512135818.GM29399@mcvoy.com> (raw)
In-Reply-To: <20230512083437.EF0B01F935@orac.inputplus.co.uk>

On Fri, May 12, 2023 at 09:34:37AM +0100, Ralph Corderoy wrote:
> Hi Larry,
> 
> > I can program in Python but I have a huge aversion to a programming
> > language that doesn't include printf in the base language.
> 
> Python has Perl's sprintf() but as the ???fmt % values??? operator rather
> than a function.  So it isn't just available for printing but general
> string formatting.
> 
>     >>> mol = '%04d' % (6 * 7)
>     >>> print('%08x  %-8s' % (826366246, mol))
>     31415926  0042    

I'm aware, I've used it.  It feels bolted on.  It's still weird.

  reply	other threads:[~2023-05-12 13:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJXSPs92h7yVVJm9UPp06zPQwRy-XkGPDhL-=uVT5sw=hEcLkQ@mail.gmail.com>
2023-05-10 23:56 ` [COFF] Fwd: " KenUnix
2023-05-11  0:12   ` [COFF] " Niklas Karlsson
2023-05-11  5:58   ` steve jenkin
2023-05-11  9:18   ` [COFF] " Ralph Corderoy
2023-05-11 22:06     ` Dave Horsfall
2023-05-11 22:35       ` segaloco via COFF
2023-05-12  2:13         ` Greg 'groggy' Lehey
2023-05-12  2:19           ` Adam Thornton
2023-05-12  2:34             ` Larry McVoy
2023-05-12  4:30               ` Tomasz Rola
2023-05-12  8:34               ` Ralph Corderoy
2023-05-12 13:58                 ` Larry McVoy [this message]
2023-05-12  4:24           ` Tomasz Rola
2023-05-12  5:02             ` segaloco via COFF
2023-05-12  8:14           ` Robert Stanford via COFF
2023-05-12 16:40             ` Adam Thornton
2023-05-12 11:42         ` Ralph Corderoy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230512135818.GM29399@mcvoy.com \
    --to=lm@mcvoy.com \
    --cc=coff@tuhs.org \
    --cc=ralph@inputplus.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).