Deutsch English Français Italiano |
<mailman.12.1724794762.2917.python-list@python.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!fu-berlin.de!uni-berlin.de!not-for-mail From: Grant Edwards <grant.b.edwards@gmail.com> Newsgroups: comp.lang.python Subject: Re: Formatting a str as a number Date: Tue, 27 Aug 2024 17:39:21 -0400 (EDT) Lines: 12 Message-ID: <mailman.12.1724794762.2917.python-list@python.org> 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> X-Trace: news.uni-berlin.de MSJJZwFqTcGepRkzFKtw4g6A9x785h5Sk3RzBUlRsSWw== Cancel-Lock: sha1:SBpJ348DCwDj8nS4mjuCramavLw= sha256:2+cXmgtGHRMnGL8mCyLifbqLKhKun9o3jDDTc3DE0sg= Return-Path: <grant.b.edwards@gmail.com> X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org Authentication-Results: mail.python.org; dkim=none reason="no signature"; dkim-adsp=none (unprotected policy); dkim-atps=neutral X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'aug': 0.07; 'ram': 0.07; 'search,': 0.09; 'url:reference': 0.09; '2024': 0.16; 'from:addr:grant.b.edwards': 0.16; 'from:name:grant edwards': 0.16; 'great.': 0.16; 'nothing.': 0.16; 'wrote:': 0.16; 'to:addr :python-list': 0.20; 'stefan': 0.26; 'header:User-Agent:1': 0.30; 'python-list': 0.32; 'from:addr:gmail.com': 0.35; 'message- id:invalid': 0.68; 'skip:f 20': 0.75 User-Agent: slrn/1.0.3 (Linux) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: General discussion list for the Python programming language <python-list.python.org> List-Unsubscribe: <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> List-Archive: <https://mail.python.org/pipermail/python-list/> List-Post: <mailto:python-list@python.org> List-Help: <mailto:python-list-request@python.org?subject=help> List-Subscribe: <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> X-Mailman-Original-Message-ID: <4Wtgt14jXFznWHr@mail.python.org> X-Mailman-Original-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> Bytes: 2754 On 2024-08-27, Gilmeh Serda via Python-list <python-list@python.org> wrote: > On 25 Aug 2024 15:46:25 GMT, Stefan Ram wrote: > >> f"{int(number):>20,}" > > Great. Thanks. Do you have a link to where that's documented? > > I did web search, found nothing. https://docs.python.org/3/library/string.html#formatspec https://docs.python.org/3/reference/lexical_analysis.html#f-strings