[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Stefan Krah
Stefan Krah added the comment: Christian Heimes wrote: > The output is from Python 3.3. Why has Python 3.3 a less informative error > message than 3.2? Because the error is discovered in libmpdec and it would require a significant amount of work to provide fine-grained error messages. > I als

[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Christian Heimes
Christian Heimes added the comment: The output is from Python 3.3. Why has Python 3.3 a less informative error message than 3.2? I also wonder why it works with floats if it has a special meaning? Either float or Decimal is broken. -- ___ Python tr

[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Stefan Krah
Stefan Krah added the comment: 3.2 has a better error message: >>> "{:<06}".format(Decimal("1.2")) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.2/decimal.py", line 3632, in __format__ spec = _parse_format_specifier(specifier, _localeconv=_localeconv) F

[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, mark.dickinson stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list ma

[issue17247] Decimal doesn't support aligned fill

2013-02-19 Thread Christian Heimes
New submission from Christian Heimes: >>> "{:<06}".format(1.2) '1.2000' >>> "{:<06}".format(decimal.Decimal(1.2)) Traceback (most recent call last): File "", line 1, in ValueError: invalid format string -- assignee: skrah messages: 182447 nosy: christian.heimes, skrah priority: normal