On 26/08/24 03:12, Gilmeh Serda via Python-list wrote:
Subject explains it, or ask.
This is a bloody mess:
s = "123456789" # arrives as str
f"{f'{int(s):,}': >20}"
' 123,456,789'
With recent improvements to the expressions within F-strings, we can
separate the string from the form
On 2024-08-26 at 20:42:32 +1200,
dn via Python-list wrote:
> and if we really want to go over-board:
>
> >>> RIGHT_JUSTIFIED = ">"
> >>> THOUSANDS_SEPARATOR = ","
> >>> s_format = F"{RIGHT_JUSTIFIED}{S_FIELD_WIDTH}{THOUSANDS_SEPARATOR}"
>
> or (better) because right-justification is the default
On 26/08/24 23:00, Dan Sommers via Python-list wrote:
On 2024-08-26 at 20:42:32 +1200,
dn via Python-list wrote:
and if we really want to go over-board:
RIGHT_JUSTIFIED = ">"
THOUSANDS_SEPARATOR = ","
s_format = F"{RIGHT_JUSTIFIED}{S_FIELD_WIDTH}{THOUSANDS_SEPARATOR}"
or (better) because r
On Sun, 25 Aug 2024 21:29:30 -0400, avi.e.gross wrote:
> If everyone will pardon my curiosity, who and what purposes are these
> smaller environments for and do many people use them?
>
> I mean the price of a typical minimal laptop is not a big deal today. So
> are these for some sort of embedded
On Sun, 25 Aug 2024 23:49:48 - (UTC), Lawrence D'Oliveiro wrote:
> The irony of my putdown is that PHP can do it about as simply. But don’t
> expect your typical PHP programmers to know that ...
It has had amazing longevity for something that was born as Personal Home
Page.
--
https://mail