Skip to content

Commit a4095ef

Browse files
DimitrisJimserhiy-storchaka
authored andcommitted
Change error message for array methods to use 'array' instead of 'list'. (#1853)
1 parent 163468a commit a4095ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/arraymodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ array_array_index(arrayobject *self, PyObject *v)
10901090
else if (cmp < 0)
10911091
return NULL;
10921092
}
1093-
PyErr_SetString(PyExc_ValueError, "array.index(x): x not in list");
1093+
PyErr_SetString(PyExc_ValueError, "array.index(x): x not in array");
10941094
return NULL;
10951095
}
10961096

@@ -1142,7 +1142,7 @@ array_array_remove(arrayobject *self, PyObject *v)
11421142
else if (cmp < 0)
11431143
return NULL;
11441144
}
1145-
PyErr_SetString(PyExc_ValueError, "array.remove(x): x not in list");
1145+
PyErr_SetString(PyExc_ValueError, "array.remove(x): x not in array");
11461146
return NULL;
11471147
}
11481148

0 commit comments

Comments
 (0)