Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <thousand-20240831162547@ram.dialup.fu-berlin.de>
Deutsch   English   Français   Italiano  
<thousand-20240831162547@ram.dialup.fu-berlin.de>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail
From: ram@zedat.fu-berlin.de (Stefan Ram)
Newsgroups: comp.lang.python
Subject: Re: Formatting a str as a number - Okay, one more related thing...
Date: 31 Aug 2024 15:26:58 GMT
Organization: Stefan Ram
Lines: 10
Expires: 1 Jul 2025 11:59:58 GMT
Message-ID: <thousand-20240831162547@ram.dialup.fu-berlin.de>
References: <oRHyO.142039$bV6e.134076@fx08.ams4> <asked-20240825164104@ram.dialup.fu-berlin.de> <combination-20240825164553@ram.dialup.fu-berlin.de> <vYqzO.8$fip4.7@fx09.ams4> <4Wtgt14jXFznWHr@mail.python.org> <mailman.12.1724794762.2917.python-list@python.org> <dGcAO.20275$Ic_6.799@fx01.ams4> <tUxAO.85679$fD72.80638@fx06.ams4>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.uni-berlin.de AjIinq5hiHWHtAFoM9gKCwOKo9l5UCnE9I4d4rAiq0s3Yq
Cancel-Lock: sha1:tSG+GMIc9AdBW+s0jxanRjCQ0OY= sha256:EmQjF3aE0u02wN5/sHYYHXjk/fweSqL9d6kzbeLVk5E=
X-Copyright: (C) Copyright 2024 Stefan Ram. All rights reserved.
	Distribution through any means other than regular usenet
	channels is forbidden. It is forbidden to publish this
	article in the Web, to change URIs of this article into links,
        and to transfer the body without this notice, but quotations
        of parts in other Usenet posts are allowed.
X-No-Archive: Yes
Archive: no
X-No-Archive-Readme: "X-No-Archive" is set, because this prevents some
	services to mirror the article in the web. But the article may
	be kept on a Usenet archive server with only NNTP access.
X-No-Html: yes
Content-Language: en-US
Bytes: 2123

Gilmeh Serda <gilmeh.serda@nothing.here.invalid> wrote or quoted:
>Of course I can do f"{123456:>20_}".replace("_", " "), just thought there 
>might be something else my search mojo fails on.

  Looks like this "replace" deal is the go-to move, no two ways
  about it. If there's some neck of the woods where it's SOP, you
  might wanna roll with "locale.format_string". (Whipping up a custom
  locale just for kicks is usually more trouble than it's worth.)