[Python-checkins] cpython (3.3): give non-iterable TypeError a message (closes #20507)

benjamin.peterson python-checkins at python.org
Sat Feb 15 19:03:28 CET 2014


http://hg.python.org/cpython/rev/b9947b68ab61
changeset:   89199:b9947b68ab61
branch:      3.3
parent:      89197:f45d4823f63c
user:        Benjamin Peterson <benjamin at python.org>
date:        Sat Feb 15 13:02:52 2014 -0500
summary:
  give non-iterable TypeError a message (closes #20507)

files:
  Objects/unicodeobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -9493,7 +9493,7 @@
     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;
     }

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list