Kaydet (Commit) 914a2edb authored tarafından Fred Drake's avatar Fred Drake

Improve TypeError exception message for list catenation.

üst b6a9ada7
...@@ -389,8 +389,8 @@ list_concat(a, bb) ...@@ -389,8 +389,8 @@ list_concat(a, bb)
PyListObject *np; PyListObject *np;
if (!PyList_Check(bb)) { if (!PyList_Check(bb)) {
PyErr_Format(PyExc_TypeError, PyErr_Format(PyExc_TypeError,
"can only append list (not \"%.200s\") to list", "can only concatenate list (not \"%.200s\") to list",
bb->ob_type->tp_name); bb->ob_type->tp_name);
return NULL; return NULL;
} }
#define b ((PyListObject *)bb) #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