format() with U+2007

Propose new features and changes
User avatar
FredOoo
Posts: 186
Joined: 07 May 2019, 21:58
Location: Paris

format() with U+2007

30 May 2022, 12:31

format("{: 3}",byte)
Returns the value of byte in the width of 3 spaces (byte always <= 256 ; 3 digits)

That would be beautiful if we can ask format("{:␣3}",byte) where ␣ is a litteral U+2007.
It's a space with the same width of digits.
Was made for digits alignements.
(Alan Turing) « What would be the point of saying that A = B if it was really the same thing? »
(Albert Camus) « Misnaming things is to add to the misfortunes of the world. »
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: format() with U+2007

31 May 2022, 06:03

All of the existing formatting flags, including the space, are handled by the C runtime. I'm not interested in extending it.

Return to “Wish List”

Who is online

Users browsing this forum: No registered users and 36 guests