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

@ -1839,7 +1839,7 @@ instance_getiter(PyInstanceObject *self)
}
PyErr_Clear();
if ((func = instance_getattr(self, getitemstr)) == NULL) {
PyErr_SetString(PyExc_TypeError, "iter() of non-sequence");
PyErr_SetString(PyExc_TypeError, "iteration over non-sequence");
return NULL;
}
Py_DECREF(func);