This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, jemerton
Date 2018-08-02.00:40:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1533170406.14.0.56676864532.issue34311@psf.upfronthosting.co.za>
In-reply-to
Content
Would my suggestion in #33731 of adding another letter in the format spec for float and decimal.Decimal solve your problem? I guess if you're using monetary=True you'd need two additional letters: like 'f' but locale aware, and like 'f' but locale aware and monetary=True.  Maybe 'l' and 'L' for these? In this case, there would be no changes to the locale module.

I don't see any good way of using new-style formatting without changing float.__format__ and decimal.Decimal.__format__.
History
Date User Action Args
2018-08-02 00:40:06eric.smithsetrecipients: + eric.smith, jemerton
2018-08-02 00:40:06eric.smithsetmessageid: <1533170406.14.0.56676864532.issue34311@psf.upfronthosting.co.za>
2018-08-02 00:40:06eric.smithlinkissue34311 messages
2018-08-02 00:40:05eric.smithcreate