Deutsch English Français Italiano |
<str-20240831175845@ram.dialup.fu-berlin.de> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!3.eu.feeder.erje.net!feeder.erje.net!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 17:00:11 GMT Organization: Stefan Ram Lines: 14 Expires: 1 Jul 2025 11:59:58 GMT Message-ID: <str-20240831175845@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> <thousand-20240831162547@ram.dialup.fu-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de qzn07oCxBUhqtpOCuSftYQk46CzNU9xAuH9OaxyBqg1Bwi Cancel-Lock: sha1:NivyTgrMxrxro1zi86PyD//DPyI= sha256:u+GAEQJme6i5hNVo7vT68Zb0M0UbxEz+v6+mU31/dJM= 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: 2360 ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted: >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.) The German DIN 5008 (their fancy-schmancy rules for writing and formatting) now says you got to use /spaces/ to separate thousands, and only recommends using periods for cold hard cash. If you just chill for a hot minute, Python's German locale will catch up, and you'll be golden.