Commit 7a91bf86 authored by Benjamin Peterson's avatar Benjamin Peterson

give non-iterable TypeError a message (closes #20507)

parent 207b5f46
......@@ -5618,7 +5618,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
PyObject *item;
Py_ssize_t i;
fseq = PySequence_Fast(seq, "");
fseq = PySequence_Fast(seq, "can only join an iterable");
if (fseq == NULL) {
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment