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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=914a2edb24e9d184885f7f707908c16d400f97da;p=python Improve TypeError exception message for list catenation. --- diff --git a/Objects/listobject.c b/Objects/listobject.c index 661a53bc55..922444edc1 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)