[pypy-svn] r5050 - pypy/trunk/src/pypy/objspace/std
arigo at codespeak.net
arigo at codespeak.net
Fri Jun 11 14:25:36 CEST 2004
Author: arigo
Date: Fri Jun 11 14:25:35 2004
New Revision: 5050
Modified:
pypy/trunk/src/pypy/objspace/std/listobject.py
Log:
[].remove(x) -> ValueError instead of IndexError.
Modified: pypy/trunk/src/pypy/objspace/std/listobject.py
==============================================================================
--- pypy/trunk/src/pypy/objspace/std/listobject.py (original)
+++ pypy/trunk/src/pypy/objspace/std/listobject.py Fri Jun 11 14:25:35 2004
@@ -395,7 +395,7 @@
if space.is_true(cmp):
_del_slice(w_list, i, i+1)
return space.w_None
- raise OperationError(space.w_IndexError,
+ raise OperationError(space.w_ValueError,
space.wrap("list.remove(x): x not in list"))
def list_index__List_ANY_Int_Int(space, w_list, w_any, w_start, w_stop):
More information about the Pypy-commit
mailing list