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 LorenzMende
Recipients LorenzMende, docs@python, ezio.melotti, ikelly, mark.dickinson, skrah, tuomas.suutari
Date 2018-09-02.08:02:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I want to bring this issue up again.
As the others correctly stated, either the documentation or the implementation of Decimal 'g' formatting is incorrect.

For floats the implementation suits the docu:
>>> '{:g}'.format(0.00001)
For decimals:
>>> '{:g}'.format(decimal.Decimal('0.00001'))

As there is a deviation between documentation and implementation, I advise to modify one of both.
Date User Action Args
2018-09-02 08:02:24LorenzMendesetrecipients: + LorenzMende, mark.dickinson, ikelly, ezio.melotti, skrah, docs@python, tuomas.suutari
2018-09-02 08:02:24LorenzMendesetmessageid: <>
2018-09-02 08:02:24LorenzMendelinkissue23460 messages
2018-09-02 08:02:23LorenzMendecreate