[issue5247] Unhelpful error message with str.format()

Eric Smith report at bugs.python.org
Sun Feb 15 21:41:02 CET 2009


Eric Smith <eric at trueblade.com> added the comment:

I've gone back and read PEP 3101. To use its terminology, I think the
error message should be something like:
Unknown presentation type %c for type %s.

I'm not sure where I got the original wording "conversion type". It's
true that it's sometimes used for type conversion (int->float, for
example), but that's not its real purpose.

It's unfortunate that "type" is used in the PEP and the online docs for
"presentation type", and we're trying to report an error on the
argument's type.

Any suggestions for clearer wording?

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5247>
_______________________________________


More information about the Python-bugs-list mailing list