Author skrah
Recipients christian.heimes, ezio.melotti, mark.dickinson, skrah
Date 2013-02-19.22:50:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
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 also wonder why it works with floats if it has a special meaning?
> Either float or Decimal is broken.

Yes, IMO float should detect the ambiguity. You see that the zero implies left

>>> "{:06}".format(1.2)

And in case of a conflict right padding wins:

>>> "{:<06}".format(1.2)

The unambiguous way to get right padding is:

>>> "{:0<6}".format(Decimal("1.2"))

>>> "{:X<6}".format(Decimal("1.2"))
Date User Action Args
2013-02-19 22:50:00skrahsetrecipients: + skrah, mark.dickinson, christian.heimes, ezio.melotti
2013-02-19 22:50:00skrahlinkissue17247 messages
2013-02-19 22:50:00skrahcreate