[issue23789] decimal.Decimal: __format__ behaviour

2015-03-27 Thread Mark Dickinson
Mark Dickinson added the comment: > I believe it's the way it is because Python follows the Standard Decimal > Specification Yes, exactly. This is behaving as designed and as tested. -- nosy: +mark.dickinson resolution: -> not a bug status: open -> closed ___

[issue23789] decimal.Decimal: __format__ behaviour

2015-03-27 Thread R. David Murray
Changes by R. David Murray : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23789] decimal.Decimal: __format__ behaviour

2015-03-27 Thread Paul Moore
Paul Moore added the comment: I believe it's the way it is because Python follows the Standard Decimal Specification, which includes tests for conformance to the current formatting behaviour. -- nosy: +paul.moore ___ Python tracker

[issue23789] decimal.Decimal: __format__ behaviour

2015-03-27 Thread Paul Eckhardt
New submission from Paul Eckhardt: The bahaviour of __format__ for decimal.Decimal type differs in one detail from float: The minimum number of digits used for the exponent is 1 for Decimal, and 2 for float. e.g.: "{:8.2E}".format(1.0) --> "1.00E+00" "{:8.2E}".format(Decimal(1.0)) --> " 1