From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7974 invoked from network); 12 May 2023 13:58:28 -0000 Received: from minnie.tuhs.org (2600:3c01:e000:146::1) by inbox.vuxu.org with ESMTPUTF8; 12 May 2023 13:58:28 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 3368C4259E; Fri, 12 May 2023 23:58:26 +1000 (AEST) Received: from mcvoy.com (mcvoy.com [192.169.23.250]) by minnie.tuhs.org (Postfix) with ESMTPS id 798EA40A48 for ; Fri, 12 May 2023 23:58:18 +1000 (AEST) Received: by mcvoy.com (Postfix, from userid 3546) id 22CAC35E847; Fri, 12 May 2023 06:58:18 -0700 (PDT) Date: Fri, 12 May 2023 06:58:18 -0700 From: Larry McVoy To: Ralph Corderoy Message-ID: <20230512135818.GM29399@mcvoy.com> References: <20230511091857.79F92221B9@orac.inputplus.co.uk> <0pqrbeVzt1XwimOc0TADlmqY1Klz6ykmdDXvQMFS4YJ6SAZnpRmPxdTiCNvMwx1wiE0qHL8MfRbf20qbxSCl_hAoTj06lqrhaw5MKYg8vKA=@protonmail.com> <20230512021317.GA3576@eureka.lemis.com> <20230512023428.GK29399@mcvoy.com> <20230512083437.EF0B01F935@orac.inputplus.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230512083437.EF0B01F935@orac.inputplus.co.uk> User-Agent: Mutt/1.5.24 (2015-08-30) Message-ID-Hash: IKDL2L5IQ775GX33I5ZJJMHJ5AHRKEYN X-Message-ID-Hash: IKDL2L5IQ775GX33I5ZJJMHJ5AHRKEYN X-MailFrom: lm@mcvoy.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: coff@tuhs.org X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [COFF] Re: Useful Shell Scripts Network Connections , Logins and Block hacking attempts List-Id: Computer Old Farts Forum Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: 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.