Commit 914a2edb authored by Fred Drake's avatar Fred Drake

Improve TypeError exception message for list catenation.

parent b6a9ada7
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment