summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-06-01 14:31:03 (GMT)
committerFred Drake <fdrake@acm.org>2000-06-01 14:31:03 (GMT)
commit914a2edb24e9d184885f7f707908c16d400f97da (patch)
tree1fbea19c6fd556424c4b2fe659cc5feef955f30a /Objects/listobject.c
parentb6a9ada757a99023e286addc6f2947747a8105ec (diff)
downloadcpython-914a2edb24e9d184885f7f707908c16d400f97da.zip
cpython-914a2edb24e9d184885f7f707908c16d400f97da.tar.gz
cpython-914a2edb24e9d184885f7f707908c16d400f97da.tar.bz2
Improve TypeError exception message for list catenation.
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c4
1 files changed, 2 insertions, 2 deletions
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 @@ 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)