Author skrah
Recipients christian.heimes, ezio.melotti, mark.dickinson, skrah
Date 2013-02-19.22:34:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
3.2 has a better error message:

>>> "{:<06}".format(Decimal("1.2"))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.2/", line 3632, in __format__
    spec = _parse_format_specifier(specifier, _localeconv=_localeconv)
  File "/usr/lib/python3.2/", line 5600, in _parse_format_specifier
    "format specifier: " + format_spec)
ValueError: Alignment conflicts with '0' in format specifier: <06

That's because '0' already has a special meaning:

"Preceding the width field by a zero ('0') character enables sign-aware zero-padding for numeric types. This is equivalent to a fill character of '0' with an alignment type of '='."
Date User Action Args
2013-02-19 22:34:53skrahsetrecipients: + skrah, mark.dickinson, christian.heimes, ezio.melotti
2013-02-19 22:34:53skrahsetmessageid: <>
2013-02-19 22:34:53skrahlinkissue17247 messages
2013-02-19 22:34:53skrahcreate