Author eric.smith
Recipients Jakub Szewczyk, eric.smith
Date 2018-06-01.13:12:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1527858730.76.0.682650639539.issue33731@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-06-01 13:12:10eric.smithsetrecipients: + eric.smith, Jakub Szewczyk
2018-06-01 13:12:10eric.smithsetmessageid: <1527858730.76.0.682650639539.issue33731@psf.upfronthosting.co.za>
2018-06-01 13:12:10eric.smithlinkissue33731 messages
2018-06-01 13:12:10eric.smithcreate