diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-02-15 13:02:52 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-02-15 13:02:52 -0500 |
commit | b8f037646c52741e7c837482538839b11c5f7114 (patch) | |
tree | d190a898384c0413303f9b2ab19289d14e2ecd76 /Objects | |
parent | 8361b1fb68f14c43161c8c917bac55906802caf5 (diff) | |
download | cpython-b8f037646c52741e7c837482538839b11c5f7114.tar.gz |
give non-iterable TypeError a message (closes #20507)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |