mirror of
https://github.com/python/cpython.git
synced 2025-07-16 07:45:20 +00:00
give non-iterable TypeError a message (closes #20507)
This commit is contained in:
parent
e426b71789
commit
9743b2c2b5
1 changed files with 1 additions and 1 deletions
|
@ -9493,7 +9493,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
|
|||
PyObject *last_obj;
|
||||
unsigned int kind = 0;
|
||||
|
||||
fseq = PySequence_Fast(seq, "");
|
||||
fseq = PySequence_Fast(seq, "can only join an iterable");
|
||||
if (fseq == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue