From 9743b2c2b584b0f0e56e33705e81b8b663dc03c3 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 15 Feb 2014 13:02:52 -0500 Subject: give non-iterable TypeError a message (closes #20507) --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index e1ff999..89094e0 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -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; } -- cgit v0.12