[New-bugs-announce] [issue4510] ValueError for list.remove() not very helpful

Brett Cannon report at bugs.python.org
Thu Dec 4 00:38:38 CET 2008


New submission from Brett Cannon <brett at python.org>:

If you try to remove something from a list, e.g. ``[].remove(1)``, the
message from ValueError is rather useless: "ValueError: list.remove(x):
x not in list". It should probably list the repr for the argument to
help in debugging.

----------
keywords: easy
messages: 76852
nosy: brett.cannon
priority: low
severity: normal
stage: needs patch
status: open
title: ValueError for list.remove() not very helpful
type: behavior
versions: Python 2.7, Python 3.1

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


More information about the New-bugs-announce mailing list