[issue13349] Non-informative error message in index() and remove() functions

Serhiy Storchaka report at bugs.python.org
Tue Mar 28 13:18:44 EDT 2017


Serhiy Storchaka added the comment:

Error messages should use repr(). For example str() of bytes object emits a warning or error.

See issue26090 for the issue with truncated reprs.

----------

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


More information about the Python-bugs-list mailing list