[issue4510] ValueError for list.remove() not very helpful
Tim Lesher
report at bugs.python.org
Mon Jul 26 15:41:20 CEST 2010
Tim Lesher <tlesher at gmail.com> added the comment:
Ugh. That's a reasonable objection.
What's the best thing to do in this case, generally speaking?
list.index() does print the full repr on a value error; and a quick grep shows a number of other similar uses, although those don't seem to be as easy to trigger inadvertently.
Should this feature be removed from list.index as well?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4510>
_______________________________________
More information about the Python-bugs-list
mailing list