SF bug [#466173] unpack TypeError unclear

Replaced 3 instances of "iter() of non-sequence" with
"iteration over non-sequence".
Restored "unpack non-sequence" for stuff like "a, b = 1".
This commit is contained in:
Tim Peters 2001-09-30 05:58:42 +00:00
parent d38b1c74f3
commit 8b13b3ede2
4 changed files with 8 additions and 4 deletions

View file

@ -3261,7 +3261,7 @@ slot_tp_iter(PyObject *self)
PyErr_Clear();
func = lookup_method(self, "__getitem__", &getitem_str);
if (func == NULL) {
PyErr_SetString(PyExc_TypeError, "iter() of non-sequence");
PyErr_SetString(PyExc_TypeError, "iteration over non-sequence");
return NULL;
}
Py_DECREF(func);