From 914a2edb24e9d184885f7f707908c16d400f97da Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Thu, 1 Jun 2000 14:31:03 +0000 Subject: [PATCH] Improve TypeError exception message for list catenation. --- Objects/listobject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.40.0