commit | 7a91bf8675bbe950b8fd850605b2e126abb95024 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sat Feb 15 13:02:52 2014 -0500 |
committer | Benjamin Peterson <benjamin@python.org> | Sat Feb 15 13:02:52 2014 -0500 |
tree | 4f4d2e80953d6d6e011b379d58854e4f573be0ca | |
parent | 207b5f466da2239b4ad4d2e069f45ec95c633bb1 [diff] [blame] |
give non-iterable TypeError a message (closes #20507)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 09e41b9..29f9bce 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c
@@ -5618,7 +5618,7 @@ PyObject *item; Py_ssize_t i; - fseq = PySequence_Fast(seq, ""); + fseq = PySequence_Fast(seq, "can only join an iterable"); if (fseq == NULL) { return NULL; }