Message318410
You can always use the locale module, although of course that's not as convenient:
>>> locale.format('%.2f', 1.891)
'1.89'
I'm open to suggests on backward compatible ways to implement this for python 3.8. It would probably involve a new letter, and need to be implemented for at least int, float, decimal, and complex. |
|
Date |
User |
Action |
Args |
2018-06-01 13:12:10 | eric.smith | set | recipients:
+ eric.smith, Jakub Szewczyk |
2018-06-01 13:12:10 | eric.smith | set | messageid: <1527858730.76.0.682650639539.issue33731@psf.upfronthosting.co.za> |
2018-06-01 13:12:10 | eric.smith | link | issue33731 messages |
2018-06-01 13:12:10 | eric.smith | create | |
|