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 mark.dickinson
Recipients eric.smith, mark.dickinson, skrah
Date 2014-07-27.10:08:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1406455723.52.0.997283705437.issue22090@psf.upfronthosting.co.za>
In-reply-to
Content
There's a minor inconsistency between Decimal and float formatting for the `%` format type when handling infinities and nans:

>>> from decimal import Decimal
>>> format(float('inf'), '.2%')  # includes trailing '%'
'inf%'
>>> format(Decimal('inf'), '.2%')  # no trailing '%'
'Infinity'

I think the Decimal result should have a '%' on it.
History
Date User Action Args
2014-07-27 10:08:43mark.dickinsonsetrecipients: + mark.dickinson, eric.smith, skrah
2014-07-27 10:08:43mark.dickinsonsetmessageid: <1406455723.52.0.997283705437.issue22090@psf.upfronthosting.co.za>
2014-07-27 10:08:43mark.dickinsonlinkissue22090 messages
2014-07-27 10:08:43mark.dickinsoncreate