From: Fred Drake Date: Thu, 1 Jun 2000 14:31:03 +0000 (+0000) Subject: Improve TypeError exception message for list catenation. X-Git-Tag: v2.0b1~1614 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=914a2edb24e9d184885f7f707908c16d400f97da;p=thirdparty%2FPython%2Fcpython.git Improve TypeError exception message for list catenation. --- diff --git a/Objects/listobject.c b/Objects/listobject.c index 661a53bc5594..922444edc118 100644 --- a/Objects/listobject.c +++ b/Objects/listobject.c @@ -389,8 +389,8 @@ list_concat(a, bb) 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)