Message 86683 - Python tracker (original) (raw)
I think a ValueError would be best. That way if we decide to give it some meaning in the future, we know it won't change any working code.
Agreed. It also fits with the way that other non-numeric types seem to behave, as in:
format("boris", "030s") Traceback (most recent call last): File "", line 1, in ValueError: '=' alignment not allowed in string format specifier