mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
Change error message for array methods to use 'array' instead of 'list'. (#1853)
This commit is contained in:
parent
163468a766
commit
a4095efc3f
1 changed files with 2 additions and 2 deletions
|
@ -1090,7 +1090,7 @@ array_array_index(arrayobject *self, PyObject *v)
|
|||
else if (cmp < 0)
|
||||
return NULL;
|
||||
}
|
||||
PyErr_SetString(PyExc_ValueError, "array.index(x): x not in list");
|
||||
PyErr_SetString(PyExc_ValueError, "array.index(x): x not in array");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1142,7 +1142,7 @@ array_array_remove(arrayobject *self, PyObject *v)
|
|||
else if (cmp < 0)
|
||||
return NULL;
|
||||
}
|
||||
PyErr_SetString(PyExc_ValueError, "array.remove(x): x not in list");
|
||||
PyErr_SetString(PyExc_ValueError, "array.remove(x): x not in array");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue