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 Kwpolska, eric.smith, mark.dickinson
Date 2020-11-22.03:28:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A few things:

- There is no %-formatting for Decimal types. They're being converted to float first. That's why it appears that %-formatting with 'g' works the same for decimal and float: you're really just calling the float version.

- The difference in 'g' formatting between float and Decimal is a known difference. This issue pops up every now and again, but right now I can't find where (or if) it's actually documented.

Mark: can you point to it? I don't think mentions it where it talks about Decimals. And I don't see any documentation for Decimal.__format__.
Date User Action Args
2020-11-22 03:28:06eric.smithsetrecipients: + eric.smith, mark.dickinson, Kwpolska
2020-11-22 03:28:06eric.smithsetmessageid: <>
2020-11-22 03:28:06eric.smithlinkissue42429 messages
2020-11-22 03:28:05eric.smithcreate