[issue3354] sort(reverse=None) prints misleading error message

Christoph Zwerschke report at bugs.python.org
Mon Jul 14 17:20:24 CEST 2008


Christoph Zwerschke <cito at online.de> added the comment:

The problem is not only that the error message "TypeError: an integer is
required" has "integer" instead of "boolean", but it does not mention
the attribute name "reverse", i.e. it does not even say *where* the
integer is required. I firmly believe error messages should not only be
technically correct, but also precise, meaningful and helpful for the user.

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


More information about the Python-bugs-list mailing list