Author eric.smith
Recipients eric.smith, rhettinger, wyz23x2
Date 2020-07-09.06:29:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594276146.41.0.416591989361.issue41250@roundup.psfhosted.org>
In-reply-to
Content
The formatting specification language is already complicated enough without adding even more to it. As PEP 378 says "It is not the goal to replace the locale module, to perform internationalization tasks, or accommodate every possible convention."

Your best bet is to write your own formater and use that:

f'{formater(v)}'

You could also pass it whatever parameters you want, like specifying the number of digits or the separator or whether to use the locale to determine these things.

The PEP suggests Babel (http://babel.pocoo.org/en/latest/), which I don't have any experience with, but seems pretty complete.
History
Date User Action Args
2020-07-09 06:29:06eric.smithsetrecipients: + eric.smith, rhettinger, wyz23x2
2020-07-09 06:29:06eric.smithsetmessageid: <1594276146.41.0.416591989361.issue41250@roundup.psfhosted.org>
2020-07-09 06:29:06eric.smithlinkissue41250 messages
2020-07-09 06:29:06eric.smithcreate