mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
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:
parent
d38b1c74f3
commit
8b13b3ede2
4 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue