New submission from Mark Dickinson: 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. ---------- messages: 224114 nosy: eric.smith, mark.dickinson, skrah priority: normal severity: normal status: open title: Decimal and float formatting treat '%' differently for infinities and nans. type: behavior versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue22090> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com