[issue4510] ValueError for list.remove() not very helpful

Tim Lesher report at bugs.python.org
Wed Jul 21 21:08:54 CEST 2010


Tim Lesher <tlesher at gmail.com> added the comment:

This patch combines the fix from Georg Brandl's original patch with the fix made to listindex.  The r76058 fix fails the test in Georg's original test where the repr of the item to be removed itself raises; this patch handles that case for both list.remove and list.index.

----------
Added file: http://bugs.python.org/file18110/improve_list_remove_error.diff

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


More information about the Python-bugs-list mailing list