[issue17247] Decimal doesn't support aligned fill

Christian Heimes report at bugs.python.org
Tue Feb 19 23:24:53 CET 2013


New submission from Christian Heimes:

>>> "{:<06}".format(1.2)
'1.2000'
>>> "{:<06}".format(decimal.Decimal(1.2))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: invalid format string

----------
assignee: skrah
messages: 182447
nosy: christian.heimes, skrah
priority: normal
severity: normal
status: open
title: Decimal doesn't support aligned fill
type: behavior
versions: Python 3.3, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17247>
_______________________________________


More information about the Python-bugs-list mailing list