projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6a9ada
)
Improve TypeError exception message for list catenation.
author
Fred Drake
<fdrake@acm.org>
Thu, 1 Jun 2000 14:31:03 +0000
(14:31 +0000)
committer
Fred Drake
<fdrake@acm.org>
Thu, 1 Jun 2000 14:31:03 +0000
(14:31 +0000)
Objects/listobject.c
patch
|
blob
|
history
diff --git
a/Objects/listobject.c
b/Objects/listobject.c
index 661a53bc559452ba5c9d0107cf72eb509a1b059a..922444edc118517d865fc18e1924568968b33f80 100644
(file)
--- 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)