Replace weird error message?

Sven R. Kunze srkunze at mail.de
Wed Mar 16 15:07:53 EDT 2016


On 16.03.2016 19:53, Ben Finney wrote:
>> Do you think some better error message should be used?
> Yes, I think that error message needs to be improved. Please file a bug
> report in Python's issue tracker <URL:https://bugs.python.org/>.
>
>> For example a hint that "0" does work for the given argument.
> I suggest: “zero-padding only allowed for numeric types, not 'str'”.

That error message would make it very clear. +1



More information about the Python-list mailing list