commit | 914a2edb24e9d184885f7f707908c16d400f97da | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Thu Jun 01 14:31:03 2000 +0000 |
committer | Fred Drake <fdrake@acm.org> | Thu Jun 01 14:31:03 2000 +0000 |
tree | 1fbea19c6fd556424c4b2fe659cc5feef955f30a | |
parent | b6a9ada757a99023e286addc6f2947747a8105ec [diff] |
Improve TypeError exception message for list catenation.
diff --git a/Objects/listobject.c b/Objects/listobject.c index 661a53b..922444e 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c
@@ -389,8 +389,8 @@ PyListObject *np; if (!PyList_Check(bb)) { PyErr_Format(PyExc_TypeError, - "can only append list (not \"%.200s\") to list", - bb->ob_type->tp_name); + "can only concatenate list (not \"%.200s\") to list", + bb->ob_type->tp_name); return NULL; } #define b ((PyListObject *)bb)