From: Benjamin Peterson Date: Sat, 15 Feb 2014 18:02:52 +0000 (-0500) Subject: give non-iterable TypeError a message (closes #20507) X-Git-Tag: v2.7.7rc1~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a91bf8675bbe950b8fd850605b2e126abb95024;p=python give non-iterable TypeError a message (closes #20507) --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 09e41b91d1..29f9bce5ae 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; }